aem

CQ Workflow, purpose of “Handler Advance”?

别等时光非礼了梦想. 提交于 2019-12-01 13:44:24
问题 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

URL Mapping based on Resource resolver in AEM

拈花ヽ惹草 提交于 2019-12-01 12:50:34
We have the following website structure: content mysite en home testlevel1page testlevel2page Now the requirement is to map: http://www.mysite.com/ --> /content/mysite/en/home.html http://www.mysite.com/testlevel1page/ --> /content/mysite/en/home/testlevel1page.html http://www.mysite.com/testlevel1page/testlevel2page/ --> /content/mysite/en/home/testlevel1page/testlevel2page.html How can we achieve this through resource resolver? Under the /etc/map/http directory, add a node "www.mysite.com" and give this a sling:internalRedirect property of /content/mysite/en/home . As per the Sling

How to hide some paths while browsing using the XType browsefield?

烈酒焚心 提交于 2019-12-01 10:41:55
In my component dialog, I use browsefield XType to enable the user to browse through the page tree and select a page: <page jcr:primaryType="cq:Widget" fieldLabel="Page" name="./path" xtype="browsefield" /> At the same time, I would like to make some pages are invisible. Suppose I have the following structure: pages/ page1/ page1_1/ page1_2/ How do I make pages/page1/page1_2 invisible, so that nobody can select it when he browses through the page tree? browsefield is a deprecated xtype, it's replacement the pathfield has this feature. Pathfield has a property called predicate which can be used

URL Mapping based on Resource resolver in AEM

不想你离开。 提交于 2019-12-01 09:47:29
问题 We have the following website structure: content mysite en home testlevel1page testlevel2page Now the requirement is to map: http://www.mysite.com/ --> /content/mysite/en/home.html http://www.mysite.com/testlevel1page/ --> /content/mysite/en/home/testlevel1page.html http://www.mysite.com/testlevel1page/testlevel2page/ --> /content/mysite/en/home/testlevel1page/testlevel2page.html How can we achieve this through resource resolver? 回答1: Under the /etc/map/http directory, add a node "www.mysite

How to hide some paths while browsing using the XType browsefield?

江枫思渺然 提交于 2019-12-01 09:43:45
问题 In my component dialog, I use browsefield XType to enable the user to browse through the page tree and select a page: <page jcr:primaryType="cq:Widget" fieldLabel="Page" name="./path" xtype="browsefield" /> At the same time, I would like to make some pages are invisible. Suppose I have the following structure: pages/ page1/ page1_1/ page1_2/ How do I make pages/page1/page1_2 invisible, so that nobody can select it when he browses through the page tree? 回答1: browsefield is a deprecated xtype,

Why we extends WCMUsePojo class while working with AEM?

谁说我不能喝 提交于 2019-12-01 08:41:52
Why we extends WCMUsepojo abstract class in our program while working with AEM? What is the advantage of using this class? Because in AEM’s component development mechanism, you likely need a way to provide back-end logic to components. That's because Sightly (when used as a rendering script language instead of the JSP pages) is on purpose a limited template language that allows to do only small basic operations, and the heavy lifting logic should be done inside a Java class or a server-side JS (that you refer using the data-sly-use element inside the Sightly script). This provide better

How to create a system user (rep:SystemUser) in AEM 6.1?

徘徊边缘 提交于 2019-12-01 08:09:11
On AEM 6.1.. I am trying to create a System User (rep:SystemUser). Can anyone help me? I need this system-user to map to a service in OSGI that i want to use to Write some data to aem content. I can see the "system users" in CRX at this location: /home/users/system I tried to create a new node to create a new-user with "jcr:primaryType rep:SystemUser", and defined the rep:PrincipalName, but that property is not being set as "Protected=true", by default is is taking as "Protected = false" and so saving the node is failing with that message. Reference: http://aemfaq.blogspot.com/2015/01/aem6

How to create a system user (rep:SystemUser) in AEM 6.1?

别等时光非礼了梦想. 提交于 2019-12-01 06:54:48
问题 On AEM 6.1.. I am trying to create a System User (rep:SystemUser). Can anyone help me? I need this system-user to map to a service in OSGI that i want to use to Write some data to aem content. I can see the "system users" in CRX at this location: /home/users/system I tried to create a new node to create a new-user with "jcr:primaryType rep:SystemUser", and defined the rep:PrincipalName, but that property is not being set as "Protected=true", by default is is taking as "Protected = false" and

How to work with a bundle in eclipse when it was downloaded from AEM

耗尽温柔 提交于 2019-12-01 06:25:24
I downloaded a zip from a running instance of AEM from package manager - http://localhost:4502/crx/packmgr/index.jsp . The zip file, when extracted contains, jcr_root and META-INF . I would like to build some functionality on top of this zip file. So I'm wondering if there is a way to work with this file in eclipse? However, there are no pom.xml files in this zip folder. So I can't just import it in Eclipse. I have AEM developer tools downloaded for Eclipse. Is there a guide available that explains how to do this? The zip file contains some Java files and I would like to make changes to those

Rendering telephone links in HTL based on input from a Rich Text widget

故事扮演 提交于 2019-12-01 05:26:00
I have a component using the Rich Text Edit widget ( xtype="richtext" ) in my project that's used across the entire site as the default text component. The users would like to be able to insert phone links using the tel URI scheme into the text entered using this component. The dialog allows them to do so but when the contents of the Rich Text Edit are rendered in Sightly/HTL later on, the html context is used: {$text @ context='html'} Once this is done, the value of my attribute is ignored. The HTML stored in the repository is: <a href="tel:04242424242">Call us!</a> And what's actually