aem

How to find out what does dispatcher cache?

南笙酒味 提交于 2019-12-02 14:56:30
问题 According this link Dispatcher is Adobe Experience Manager's caching and/or load balancing tool. I need to know what does my dispatcher cache. How can I found out it? 回答1: The Adobe AEM/CQ5 dispatcher simply takes the response body from requests made into the CQ5 instances and saves them as files that then the httpd can deliver. The dispatcher can be configured to allow requests to be either cached or sent directly to the CQ5 instance. This configuration is done in a file dispatcher.any.

Have anyone here used DAY CQ? [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-02 11:56:10
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 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 CQ as Adobe does not seem to have really re-branded the Day products. First I would try searching Day's Documentation at http://docs.day.com . Dacare is Day's hub for all of their support and such at http://www.day.com/content/daycare.html , you can find links to support groups,

How to validate a field using cq.HTTP.post method In adobe cq5?

安稳与你 提交于 2019-12-02 11:31:47
I am trying to validate a field by sending field value to a servlet and in response i'm getting true or false i.e whether this field is valid or not . here is my dialog file <bodytext jcr:primaryType="cq:Widget" fieldDescription="Type Text Here" fieldLabel="Body Text" name="./bodytext" validator= "function(value) { var dialog = this.findParentByType('dialog'); var postParams = {}; postParams['value'] = value; CQ.HTTP.post('/bin/feeds/validation.json', function(options, success, response){response.valid ? true : 'Form name already exists on this page.';},postParams); }" xtype="textarea"/> and

How to replicate a page and all its children using replicator API?

天大地大妈咪最大 提交于 2019-12-02 10:19:40
问题 Here is the code in which I am replicating the page final String pagePath = blogEntryPage.getPath(); final Resource jcrContent= blogEntryPage.getContentResource(); final Node jcrNode = jcrContent.adaptTo(Node.class); adminSession = jcrNode.getSession(); // REPLICATE THE DATE NODE replicator.replicate(adminSession, ReplicationActionType.ACTIVATE, pagePath); Here the problem is only the parent page is getting replicated I want to replicate the child pages also 回答1: How about just iterating over

How to provide custom value on checkbox in cq5 dialog?

你离开我真会死。 提交于 2019-12-02 09:40:27
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 ? You can give this a try { xtype: "selection", fieldLabel: "Yes/No", name: "./yesNo", hideLabel: false, type: "checkbox", allowBlank: true, jcr:primaryType: "cq:Widget", fieldDescription: "Check for Yes",

CQ5 QueryBuilder Reference in Sling Servlet

拥有回忆 提交于 2019-12-02 09:38:55
I am declaring a sling servlet like so @Component(metatype = false) @Service(Servlet.class) @Properties({ @Property(name = "sling.servlet.paths", value = "/bin/foo/bar"), @Property(name = "sling.servlet.methods", value = "POST") }) public class FooBarServlet extends SlingAllMethodsServlet { ... } I override doPost like so @Override protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response) throws IOException { ... } And I am able to post from a client. Great! I throw in the following @Reference private QueryBuilder queryBuilder; as per the documentation, a

Adding styles in rich text Touch ui multifield

天大地大妈咪最大 提交于 2019-12-02 09:28:35
问题 I was trying to create a multifield touch ui text component in AEM 6.2. I created it by adding a field with the following resource type: <test jcr:primaryType="nt:unstructured" sling:resourceType="cq/gui/components/authoring/dialog/richtext" fieldLabel="Touch Ui Text" name="./test" renderReadOnly="{Boolean}true"/> It worked.But I have to add styles as a plugin in my mutifield text component which I am unable to do. How to add the plugins just like we add rte plugins in classic ui? I need to

How can I prevent exposing of content hiererchy paths within AEM? I am looking for alternatives both at AEM level as well as Dispatcher level

烈酒焚心 提交于 2019-12-02 09:03:00
As an example, how would you achieve: a. Translate a hit to www.mysite.com to www.mysite.com/en and b. Translate the above www.mysite.com/en to /content/mysite/en.html Shawn Take a look at resource mapping: https://docs.adobe.com/docs/en/aem/6-2/deploy/configuring/resource-mapping.html https://docs.adobe.com/docs/en/dispatcher/disp-domains.html#URL%20Mapping With mapping you can make it so the incoming URL (what the user sees in their browser) is one thing, but the URL that AEM sees when processing the incoming request is something else. Also see: URL Mapping based on Resource resolver in AEM

Adding styles in rich text Touch ui multifield

老子叫甜甜 提交于 2019-12-02 06:23:40
I was trying to create a multifield touch ui text component in AEM 6.2. I created it by adding a field with the following resource type: <test jcr:primaryType="nt:unstructured" sling:resourceType="cq/gui/components/authoring/dialog/richtext" fieldLabel="Touch Ui Text" name="./test" renderReadOnly="{Boolean}true"/> It worked.But I have to add styles as a plugin in my mutifield text component which I am unable to do. How to add the plugins just like we add rte plugins in classic ui? I need to provide various styles in the rich text editor as part of multifield. Thanks for helping! It appears the

How add mandatory dropdown field in Touch UI

╄→гoц情女王★ 提交于 2019-12-02 06:16:35
I added "required" as "true" but it is not working. "required" as "true" only works for text field. As per below document, I do not see any option to add mandatory field from dropdown. http://docs.adobe.com/docs/en/aem/6-0/author/assets/managing-assets-touch-ui/managing-asset-schema-forms.html How is it possible to achieve this? Use $.validator.register to register custom validators. I have written a detailed blog post on writing custom validators: http://www.nateyolles.com/blog/2016/02/aem-touch-ui-custom-validation . I have made a comprehensive Touch UI validation library available on GitHub