aem

How to use cq:noDecorator property in cq5 , can the default 'div' tag be changed to other block tags

旧城冷巷雨未停 提交于 2019-12-06 15:19:55
I need to remove decorator 'div' tags added around components by CQ5 for few select components. They can be part of the mark up in author mode, but it should not be present in the final mark up on publish. To change the default div tags to something else , use cq:htmlTag nodes in your components. This lets you modify the tag , classes and id associated with the decorator tag. Create cq:htmlTag node [primaryType:nt:unstructured] under your component. Add cq:tagName property [type:String] with the tag to be used as value. Add class property [type:String] with class(es) to be added to the

AEM Sightly to get properties of child nodes.

一笑奈何 提交于 2019-12-06 14:59:44
So it looks like sightly is great for getting properties, but I would like to work get properties of other child nodes that I have defined. Here is the start of my PictureFill Component structure: { jcr:primaryType: "nt:unstructured", jcr:createdBy: "admin", fileReference: "/content/dam/myapp/dev/hero-billboard.jpg", jcr:lastModifiedBy: "admin", jcr:created: "Wed Oct 07 2015 03:38:00 GMT+0000", jcr:lastModified: "Wed Oct 07 2015 16:54:12 GMT+0000", sling:resourceType: "myapp/components/content/image", cq:responsive: { jcr:primaryType: "nt:unstructured" }, mobile: { jcr:primaryType: "nt

How to modify the Adobe CQ ActivatePageProcess process

爱⌒轻易说出口 提交于 2019-12-06 13:24:46
问题 I'm working with Adobe Experience Manager version 5.6 (CQ). I have a requirement that involves modifying the ActivatePageProcess workflow process, basically checking who the user is that is trying to publish, and actually opening the document for edit if it's not an administrator. The issue I'm having is that I'm not clear where I can find the ActivatePageProcess script in CRXDE ... or if it's even there. Once I find it, I know I can move it to /apps and make my changes, but so far I'm not

Setup AEM in Eclipse and create a project

亡梦爱人 提交于 2019-12-06 11:31:28
I am very new to AEM and I am trying to create a AEM project in Eclipse based on certain tutorials from internet. After installing the AEM plugin by using this url , I tried to create the project. I tried different approaches - some of them failed. Approach - 1: Mars Eclipse, Java 1.8 and AEM 6.2 Select the Archetype-10, choose Setup new server , enter the server details and deploy it while creating the project, where I got an error " The server does not support version 2.4 of the J2EE Web module specification. Approach - 2: Mars Eclipse, Java 1.8 and AEM 6.2 First create the AEM server in the

AEM sightly how to reuse variables

╄→гoц情女王★ 提交于 2019-12-06 09:06:09
can I use variables in another file that I'm including? in my HTL (file1.html) I have: <sly data-sly-test.myVar="${properties.myVarFromDialog}"></sly> <sly data-sly-include="/file2.html"></sly> Can I use myVar in file2.html ? I'm not getting any value. Is there a way of getting that value from file1.html to use in file2.html You should use data-sly-template for this. You can define templates in a separate file and can pass in parameters. For an explanation on templates check the following documentation link http://docs.adobe.com/docs/en/aem/6-0/develop/sightly.html#template Firstly, for the

Populating select-box options on changing pathfield in dialog of Adobe cq5

不问归期 提交于 2019-12-06 08:37:11
问题 In one of my dialogs, I have a field with an xtype of "pathfield". Depending on the value of this field, I want to change the options of the "select-box" (xtype="selection",type="select"). I have used listeners and added a function on events "change" and "dialogclose" for "pathfield" field. I can call the servlet and it is sending the JSON response with options, however, I am unable to populate the select-box with these options. The following is code of the dialog.xml <select-product jcr

CQ5 - Hiding a tab within a component dialog depending on user group?

冷暖自知 提交于 2019-12-06 08:15:59
Any ideas how I would hide or show a dialog tab panel depending on which user group the user belongs to? I tried to do this through the CRX content explorers (ACL's). But I'm not getting much luck with it. Cheers As noted by anthonyh , the ACL approach is the way to go (if such a behavior is really necessary). For example, to hide the "image" tab of the base page component: edit acls for /libs/foundation/components/page/dialog/items/tabs/items/image add deny jcr:read for author login as author go to http://localhost:4502/content/geometrixx/en.html and open the page properties image tab should

how to get array values of a node property in jcr

て烟熏妆下的殇ゞ 提交于 2019-12-06 07:20:15
问题 Need help in getting the string[] values of node property?? for example I have a node image which has property "references" of type String[] . I need to get the first value of array. Thanks 回答1: From the Node, you can get the references property. And then call getValues to the reference values. From there, just take the first. Something like public String getFirstReference(Node node) throws RepositoryException { Property references = node.getProperty("references"); Value[] values = references

Adobe CQ : Regarding Session in Event Listener

烈酒焚心 提交于 2019-12-06 07:11:40
I have a question regarding event listener. We have a event listener which listen to delete node event and perform some activity say "send email". While code review i found this, although this code is working fine i am not convinced with the session being handled here : @Activate protected void activate(ComponentContext context) { try{ final String path="/content/dam/"; Session session = repository.loginAdministrative(repository.getDefaultWorkspace()); observationManager = session.getWorkspace().getObservationManager(); observationManager.addEventListener(this, Event.PROPERTY_REMOVED, path,

Search DAM assets and Cq pages using lastModified date | QueryBuilder

白昼怎懂夜的黑 提交于 2019-12-06 07:04:15
问题 I am querying the cq pages and assets based on the last modified date. Here is the the text that has to be put in query builder debugger: fulltext=geometrix 1_group.p.or=true 1_group.1_group.p.and=true 1_group.1_group.path=/content 1_group.1_group.type=cq:Page 1_group.1_group.relativedaterange.property=jcr:content/cq:lastModified 1_group.1_group.relativedaterange.lowerBound=-1M 1_group.2_group.p.and=true 1_group.2_group.path=/content/dam 1_group.2_group.type=dam:Asset 1_group.2_group