aem

How to add additional element to htmlparser generator

☆樱花仙子☆ 提交于 2019-12-06 06:45:30
问题 I want to rewrite links in attributes of span tags with sling rewrite pipeline. The htmlparser generator only calls "a, link, script, img, form, body" elements. How can I add additional element like span to my transformer? An example configuration would be great! I read that a generator-htmlparser node should be created with the includeTags property, but it doesn't work! I tried to create this node under /apps/MY_APP/config/rewriter. There is also an other generatorType (html-generator),

AEM Page Image in Page Properties Doesn't Apply a sling:resourceType

社会主义新天地 提交于 2019-12-06 06:28:58
问题 Using Adobe Experience Manager 5.6.1 (AEM) (Formerly CQ5) I am trying to create a new tab similar to the Image tab in Page Properties. It would be titled "Logo". I basically just copied the Image tab to create a logo tab and renamed the paths to reflect the logo purpose. For instance, I set the fileReferenceParamater to ./logo/fileReference and requestSuffix to /logo.img.png . When I edit the properties, I can drag an image into the tab just as I can with the "Image" tab, however, the image

Can multiple smartimage xtypes appear on one dialog tab in AEM?

孤人 提交于 2019-12-06 06:13:03
问题 The out of the box (OOTB) page properties dialog in Adobe Experience Manager (AEM) (CQ5) provides an Image tab. I would like to add a couple more images to the dialog, but I don't want to create a separate tab for each one. For instance, is there a way to include an image on the "Advanced" tab within a dialogfielset? I tried this, but it does not seem to render properly. One thing I am considering is to extend the slideshow xtype and each image would be a separate "slide" Are there better

AEM - How to restrict a template from showing in a certain path

萝らか妹 提交于 2019-12-06 06:04:37
I wonder if someone has achieved what I'll post here. In order to allow a template to be created under a certain path, there is a flag allowedPaths that receives a regex. So, if I want my template "test" to appear only under /content/www/xx/xx/test-templates and child elements, I can do this: /content/www/.*/.*/test-templates(/.*)? But what if I want to make the opposite? I want the template "test" to appear in every /content/www/xx/xx/ node and beyond, EXCEPT /content/www/xx/xx/test-templates and children? I have tried several ways but no luck so far. Do you have some hint regarding this?

javax.jcr.nodetype.ConstraintViolationException: No matching property definition: PROPERTY

十年热恋 提交于 2019-12-06 05:45:05
When I am trying to set a property to my JCR node I am getting error javax.jcr.nodetype.ConstraintViolationException: No matching property definition: PROPERTY. I am a newbie to cq5. Please can someone help me to resolve this error? In jcr every node has a node-type (value of "jcr:primaryType"). Most node-types define a schema of properties that are allowed on that node. You cannot just add whatever property you like. It has to be defined in the schema. If you try to add and persist (commit) a property that is not defined, you get exactly this ConstraintViolationException . So here's what

Is it possible to place variables into a resource path within a sling servlet?

馋奶兔 提交于 2019-12-06 05:03:10
问题 We are trying to provide a clean URI structure for external endpoints to pull json information from CQ5. For example, if you want to fetch information about a particular users history (assuming you have permissions etc), ideally we would like the endpoint to be able to do the following: /bin/api/user/abc123/phone/555-klondike-5/history.json In the URI, we would specifying /bin/api/user/{username}/phone/{phoneNumber}/history.json so that it is very easy to leverage the dispatcher to invalidate

Where are the Configurations made in OSGi Console saved?

一笑奈何 提交于 2019-12-06 04:47:38
问题 When we update any configuration for a component in the Configurations tab in the Apache Felix Web OSGi Console, where are these configuration settings saved? This is with respect to AEM 6.0 or above. 回答1: The manually saved configuration settings are stored in the the crx-quickstart/launchpad/config directory (in your AEM installation folder in the local file system) and, on top of that, as .config files in the Content Respository at /apps/system/config . For example, if you're looking for

Component group not showing in sidekick (Adobe CQ)

天大地大妈咪最大 提交于 2019-12-06 04:06:36
Im using adobe CQ 5 and I have created a bunch of components. For all these components I have set allowedParents to */parsys and I have defined the componentGroup as xyz . My page contains the parsys component. When I enter the parsys design mode, the list of allowed components does not show the component group xyz . Please help! Thanks in advance Kindly make sure that your components jcr:title is not the same as the component's name. For Eg: if the name of the component is text , then the title should at least be Text and not text. Change it and then check in the design mode, it will list

How can list elements be looped under <script> in sightly?

匆匆过客 提交于 2019-12-06 03:45:17
In my html page I would like to loop through the properties returned by my Java class but do it under <script> tag. Currently my html page has this: <div id="map_wrapper"> <div data-sly-use.ev="Foo" class="mapping" id="${ev.googleClass || ''" > </div> </div> <script> .... var markers = [ ['Bondi Beach', -33.890542, 151.274856], ['Coogee Beach', -33.923036, 151.259052], ['Cronulla Beach', -34.028249, 151.157507], ['Manly Beach', -33.80010128657071, 151.28747820854187], ['Maroubra Beach', -33.950198, 151.259302] ]; ..... </script> My Java Class has following getters: //returns [0] = "something,

How are themes applied in Adobe AEM?

你离开我真会死。 提交于 2019-12-06 02:56:24
问题 The Client Library (ClientLib) feature in Adobe AEM (formerly Adobe CQ) makes it easy to include client libraries by category and each library can pull in other libraries through dependencies. However the documentation around "Themes" is a little thin. This link is about all I can find on the subject. Here is an excerpt of the sample code: <%-- theme only (theme-js + css) --%> <cq:includeClientLib theme="cq.collab.calendar, cq.security" /> If this tag were to be used how would CQ determine