aem

Start a workflow on page activation without activating the page in CQ5

梦想的初衷 提交于 2019-12-03 13:40:02
I would need to call a workflow whenever a content author clicks activate on a page. The workflow would then send a notification to the administrator, who then proceeds to activate the page. Let me explain this with some more detail. There are 2 parts to this i) Whenever a content author is done modifying a page, he would then proceed to click " Activate Page " from either the sidekick or from page properties on the siteadmin. By doing so, he is not activating the page straight away but calling a workflow. ii) The workflow will send out a notification to the admin, who then decides to activate

How to deploy rep:policy files via maven?

南笙酒味 提交于 2019-12-03 13:05:27
I've added some extra ACLs to /home/groups and /home/users by adding _rep_policy.xml files for each, but can't seem to get them to deploy. I added the following lines to my vault filter.xml <filter root="/home/users/rep:policy" mode="replace"/> <filter root="/home/groups/rep:policy" mode="replace"/> Both have contents like this: <?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal" jcr:primaryType="rep:ACL"> <allow jcr:primaryType="rep:GrantACE" rep:principalName="everyone" rep:privileges="{Name}[jcr:read]"/> </jcr:root> But when I run

Conditional show / hide of fields in AEM 6 dialogs

核能气质少年 提交于 2019-12-03 11:04:51
I am building a relatively straight-forward AEM component with a simple authoring dialog. At the top of my dialog is a select field. I want certain fields in my dialog to disappear when this select field is set to a specific item. I have studied the implementation of the Foundation Carousel component, which uses the cq-dialog-dropdown-showhide-target attribute, which is fine, but isn't quite the logic I am looking for. The logic used there is: show this field if the select is equal to X Whereas I am trying to implement: hide this field if the select is equal to X, Y or Z, otherwise show it Has

How/When is CRX and Apache Jackrabbit used in CQ5/AEM?

十年热恋 提交于 2019-12-03 10:48:26
Lately, I have spent some time trying to better understand the AEM technology stack. There are so many pieces, it seems easy to get confused. I have been looking over the JCR implementations on AEM. I keep reading that it uses CRX. However, I know that it uses Apache Jackrabbit as well. Is it using both? What is the logic behind using both implementations? When and where is each used? A better question might be what is the relationship between CRX and Jackrabbit? JCR (JSR-170) is the a standard Java API for content repositories. It provides an interface for Java applications to interact with

How do I add a 'where not' to a QueryBuilder Query

泪湿孤枕 提交于 2019-12-03 09:04:35
I want to search the entire content tree but not specific tress that have a 'Do Not Search' property at their base. The Query Builder API page does not reference anything besides AND and OR. Is it possible to exclude paths from the search or can I only explicitly include paths? The first three lines are "/content AND /content/path/es". I want "/content AND NOT(/content/path/es)" map.put("group.1_path", "/content"); map.put("group.2_path", "/content/path/es"); map.put("group.p.or","false"); I have tried the next two both true and false and they have no effect. map.put("group.2_path.p.not",

Why use @Component annotation with each service in CQ

爱⌒轻易说出口 提交于 2019-12-03 06:10:57
I am bit confused about following things. I understand @Service and @Component annotations are main annotations when we define a component or a service in OSGi. I am referring to http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html and What is the difference between OSGi Components and Services Questions: A service can not be created without @Component annotation, why is that? I understand once we define a service its life-cycle is managed by OSGi differently but what are the advantages of doing so? How do we use class defined as @Component as

Expression Option Sightly

ε祈祈猫儿з 提交于 2019-12-02 23:04:35
I was looking over the expression options used in sightly. I tried the below line of code, but it seems just render the text over the page, can someone provide use of options with some good examples. ${'Assets' @ i18n, locale='fr-CH', hint='Translation Hint'} ${'Page {0} of {1}' @ format = [count,total] } I have tried and understand the below code to include the parsys <div data-sly-resource ="${@path='question_list', resourceType='wcm/foundation/components/parsys'}"></div> Also from where i can get the whole list of data-sly-[elements]. Thanks Options in Sightly expressions can have two

How to provide custom value on checkbox in cq5 dialog?

家住魔仙堡 提交于 2019-12-02 20:29:25
问题 I just created a widget inside my dialog in whose xtype=selection i.e checkbox. Is there any way through which i can get my custom value instead of true and false while select and deselecting the check box. suppose i want to get the value "Yes" when i select the checkbox. the alternative way is to handle it inside the jsp of the component but is it possible to handle it at dialog level ? 回答1: You can give this a try { xtype: "selection", fieldLabel: "Yes/No", name: "./yesNo", hideLabel: false

Have anyone here used DAY CQ? [closed]

穿精又带淫゛_ 提交于 2019-12-02 18:50:15
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Anyone here develops on DAY CQ? Can advise what is the forum or community to seek for help? I tried to sign up to their google groups but am not able to do so 回答1: Day CQ is a Web Content Management platform based on Java and the JCR specification. Contrary to BoltClock, I would still recommend searching for Day

Unable to select the components on a page

独自空忆成欢 提交于 2019-12-02 17:50:52
问题 I want to perform a rollout only for the selected components in the page. I noticed that I am not able to select any of the components presented in the pages using the small checkbox in the component's edit bar. I am not sure why this is happening. All of them are custom components and not OOTB ones. Any solutions to this, please share them. 回答1: I just discovered that in EditBar.js, the listener associated with the checkbox was not functioning. The following loc can be found at /libs/cq/ui