aem

What am I missing for this CQ5/AEM URL rewriting scenario?

 ̄綄美尐妖づ 提交于 2019-12-02 05:10:07
I basically want short URLs to get resolved and HTML pages to be generated with short URLs for a CQ5 website. So far short URLs are getting mapped to long URLs as expected, but links in the generated HTML pages are not getting shortened. For example, I am expecting the src attribute of the following <script> tag: <script type="text/javascript" src="/content/foo/c0/06/9d/3d93a858-efb4-4619-8f9e-5edc65d0f5ae/style/clientlibs.1395978029951.js"></script> To be shortened to: <script type="text/javascript" src="/style/clientlibs.1395978029951.js"></script> But it is not and remains intact. href

How to map urls?

江枫思渺然 提交于 2019-12-02 02:49:25
问题 I would like to map pages such domain/content/myProject/home.html to domain/home.html . /content/myProject/ is not needed. I have the following code: String newpath = getResourceResolver().map(page.getPath()); this does not change anything. newpath is stay page.getPath() how to solve this issue? 回答1: Answering as this question as it remains unanswered. Here is an example of how the etc mappings should look like: Trick is you add 2 entries to sling:internalRedirect as / and /content/example/

<strong> tag getting replaced to <b> tag in CQ5

喜欢而已 提交于 2019-12-02 02:20:34
I'm using Rich Text Editor with MiscTools plugin to edit text in my website but when I open the HTML editor and create sth like this <p><strong>Strong text</strong></p> the CQ immediatelly rewrites it to <p><b>Strong text</b></p> Is it possible to disable this behaviour? I need to use the <strong> tag because of my CSS styles. I'm using copy of text component from /libs/foundation/components/text . Thanks for any help There isn't very much documentation around this, but the default htmlRules configuration is eating your tags as part of its DOM processing/clean-up. In particular, the defaults

<strong> tag getting replaced to <b> tag in CQ5

帅比萌擦擦* 提交于 2019-12-02 02:05:59
问题 I'm using Rich Text Editor with MiscTools plugin to edit text in my website but when I open the HTML editor and create sth like this <p><strong>Strong text</strong></p> the CQ immediatelly rewrites it to <p><b>Strong text</b></p> Is it possible to disable this behaviour? I need to use the <strong> tag because of my CSS styles. I'm using copy of text component from /libs/foundation/components/text . Thanks for any help 回答1: There isn't very much documentation around this, but the default

Multiple paragraphs in a CQ5 page don't work

折月煮酒 提交于 2019-12-02 00:58:56
问题 I tried adding muultiple "par" components in my template's JSP. But only the one appearing first is visible on the page. Is there is limitation of using paragraphs in a page ? 回答1: Just change the value for your path variable <cq:include path="par1" resourceType="foundation/components/parsys" /> <cq:include path="par2" resourceType="foundation/components/parsys" /> this should help you in having multiple paragraph components 来源: https://stackoverflow.com/questions/14995633/multiple-paragraphs

Version of Ext JS used by AEM 6.1

旧城冷巷雨未停 提交于 2019-12-02 00:15:33
Which version of Ext JS library does AEM 6.1 use? Is there a direct way/console to find this out? It uses v3.4.0 of ExtJS on top of which the AEM Widget Library is built. You can find the details at /libs/cq/ui/widgets/source/ext/release-notes.html The following Note is also available at https://docs.adobe.com/docs/en/aem/6-1/develop/components/widgets.html Adobe Experience Manager is built upon ExtJS 3.4.0. 来源: https://stackoverflow.com/questions/35553557/version-of-ext-js-used-by-aem-6-1

OSGi bundles won't start - Unable to resolve sun.reflect.generics.reflectiveObjects

此生再无相见时 提交于 2019-12-01 22:47:42
After seemingly irrelevant changes in the code of my AEM project, my bundle fails to resolve. Upon inspecting the logs, I can see the following errors appearing. 22.04.2015 11:00:18.650 *ERROR* [qtp1266495948-35] org.apache.felix.http.jetty %bundles.pluginTitle: Cannot start (org.osgi.framework.BundleException: Unresolved constraint in bundle my-bundle ... [caused by: Unable to resolve 401.121: missing requirement [401.121] osgi.wiring.package; (osgi.wiring.package=sun.reflect.generics.reflectiveObjects)]] The project compiles just fine locally and the problem only occurs after the bundle's

defaultValue in Touch UI dialogs - AEM/CQ

寵の児 提交于 2019-12-01 18:30:14
问题 For classic UI there is a option to set defaultValue for fields, this is shown to user when user first time opens the dialog after dragging the component. If user clears the value in dialog and saves, on editing the dialog, value of field is not shown again. For touch UI dialog, couldn't find the equivalent of defaultValue . There are following options emptyText - But this is kind of placeholder text. If user wants to save form without entering value, this is not useful. value - This shows

CQ5: Inheriting/Extended Dialogs

試著忘記壹切 提交于 2019-12-01 17:48:06
问题 For reference, I'm on CQ5.5 I am curious if there is any way to extend upon an inherited dialog, without overwriting it's parent dialog. For example, have a structure as follows: base-page-template - dialog - title - description inerited-from-base-page - dialog - custom field --------------- [inherited from parent] - title - description What I'm trying to avoid is for example: I need to add a new property to base-page that should show up on all page templates that extend from base-page. My

CQ Workflow, purpose of “Handler Advance”?

孤人 提交于 2019-12-01 14:31:30
I am working with some custom WorkflowProcess classes in Adobe CQ 5.4 When I configure the workflow step as part of my workflow model, there is an checkbox entitled "Handler Advance, Check if your handler will advance to the next step" My Java classes do in fact progress the workflow (and sometimes terminate the workflow). i.e. workflowSession.complete(workItem, routes.get(0)); workflowSession.terminateWorkflow(workItem.getWorkflow()); Given that this custom WorkflowProcess performs these operations, I think that I should be checking the "Handler Advance" option. I was hoping for a better