aem

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

百般思念 提交于 2019-12-09 10:45:22
问题 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

ADOBE CQ5 JCR - How to orderby/sorting query builder result using node's property

谁说胖子不能爱 提交于 2019-12-09 07:08:25
basically below is the java coding part, which the result will then be populated to a .csv file. However, I dont seem get the ordering part right (last line in below snippet). Map<String, String> map = new HashMap<String, String>(); map.put("path", "/etc/crx-db/form-data/career"); map.put("type", "nt:unstructured"); map.put("p.limit", "-1"); map.put("daterange.property", "created"); map.put("daterange.lowerBound", from); map.put("daterange.lowerOperation", ">="); map.put("daterange.upperOperation", "<="); map.put("daterange.upperBound", to); map.put("orderby", "created"); //<--here Providing

AEM 6.0 Sightly Child Nodes

China☆狼群 提交于 2019-12-09 06:57:15
问题 I have a question around using Sightly to access child nodes of a component. I have a template which pulls in a basic image component using data-sly-resource, like so. <div class="${wcmmode.edit ? 'image-edit image' : 'image'}" data-sly-resource="${ 'heroImage' @ resourceType='/libs/foundation/components/image', appendPath='image', selectors='fileReference' }"> </div> What I would like to do is change the css class based on whether or not that image component actually has an image set. For

Pass json data to servlet (doPost) with Jquery $.ajax

你离开我真会死。 提交于 2019-12-08 15:44:44
i'm learning about calls to ajax so i'm trying to get the value of ('#abcd') (a html select). I'm using this line: abcdVal = combo.options[combo.selectedIndex].value When this value change i must store his value in a var like abcdVal for pass to servlet with: var data = {"text" : abcdVal}; j("#mybutton").click(function(){ j.ajax({method: 'POST', url: "/bin/company/repo", dataType: 'JSON', data: data, success:function(result){ alert(result); j("#demo").html(''); j('#demo').html(result); }}); }); i got the value and put in response as a text plain, but in html page i see: [{"text":null,"value"

CQ/AEM staging concept with workflows

我与影子孤独终老i 提交于 2019-12-08 12:56:30
问题 We are facing a special requirement from our customer and my research didn't find this scenario on docs.adobe.com: AEM is used as a CMS for other applications and has no client facing direct HTTP access on the publish systems. The authors create business critical content on the author system but can't do an end2end test, because they need a publish instance with anonymous access to the content without any edit functionality. I know they could create the content on a different system and than

AEM 6.1 - Configure Rich Text Editor Plugins on an RTE field inside a Touch UI Dialog

喜欢而已 提交于 2019-12-08 11:15:14
问题 I have a Touch UI dialog containing multiple Rich Text fields. Some are spread out over several tabs. I would like to add several plugins, such as the misctools plugin, to the RTE toolbar. How is this accomplished? I have tried configuring them using the an rtePlugins node as a child of the field node in the dialog, as well as adding an rtePlugins node under the cq:editConfig->cq:inplaceEditing node, but none of these approaches change the RTE toolbar inside the dialog itself (I don't want in

How to check if child component resource exist or not using Sightly in AEM?

久未见 提交于 2019-12-08 05:42:21
问题 my component has an embedded image component inside of it, i need to show image only if image component is authored, Component Code: <div class="rightSideTile tile-img col-xs-5 col-md-4"> <sly data-sly-resource="${'image' @ resourceType='test/components/content/image'}"></sly> </div> So i need to check resource of embedded image component authored or not i know we can do this in Java, but how to do this in Sightly? 回答1: This can be doable ,using ${resource['image/jcr:primaryType']} , here

How to Enable CORS in CRXDE Lite/AEM

不羁岁月 提交于 2019-12-08 05:40:25
问题 We use CRX DE lite/Adobe EM as our backend for our Angularjs SPA UI/frontend. How can we set CORS for this backend technology? We have access to the tool http://localhost:4502/crx/de/index.jsp to change settings. But we are not sure how to set CORS enabled. Please advice. 回答1: As of AEM 6.3 There is an OOTB service called Adobe Granite Cross-Origin Resource Sharing Policy. It was as easy as creating an OSGi configuration with the alloworigin=[http://localhost:8000] property. In my case, my

ADOBE CQ5 JCR - How to orderby/sorting query builder result using node's property

只愿长相守 提交于 2019-12-08 05:40:23
问题 basically below is the java coding part, which the result will then be populated to a .csv file. However, I dont seem get the ordering part right (last line in below snippet). Map<String, String> map = new HashMap<String, String>(); map.put("path", "/etc/crx-db/form-data/career"); map.put("type", "nt:unstructured"); map.put("p.limit", "-1"); map.put("daterange.property", "created"); map.put("daterange.lowerBound", from); map.put("daterange.lowerOperation", ">="); map.put("daterange

Can I get entire i18n labels of specific dictionary

安稳与你 提交于 2019-12-08 05:22:30
问题 I am facing an issue with i18n labels. My application reads few i18n labels at js frontend using Granite.I18n.get('') function. The entire dictionary gets downloaded as ‘/libs/cq/i18n/dict.{+locale}.json’ as dictated in ‘/etc/clientlibs/foundation/shared/source/init.js’. Now the en dictionary returns only the custom labels and is small size. But other languages like fr,the dictionary file is aggregation of all /libs dictionary and is very huge. I noticed this in few other sites also.