Aem Download a copy of Adobe CQ5

I would like to take a look at Adobe CQ5 CMS system. Does anybody know if I can download it to my developer computer? I can not find link on web site. I know Adobe offers CRX as opensource - but my interest is in CQ5 cms.

Aem CQ5(CRX) bookstore application error

When I tried to invoke http://:4502/products.html Actual result should list the products page from bookstore app I got "Cannot serve request to /products.html in /apps/bookstore/components/ranking/ranking.jsp: What version of the product are you using? On what operating system? I am using CQ5.5 (CRX 2.3) on windows 7 http://code.google.com/p/crxzon/issues/detail?id=4&thanks=4&ts=1362987616

Aem CQ5 preload a parsys with components

I'm curious if anyone knows how to have a parsys load w/ default components already in it. What I'd like to accomplish is the following: Form Component - form-parsys - input component - input component For the most part this was pretty straight forward. I created a "form" component that has a parsys in it. What I would like is for this form component to load with a few default input components already set. These input components would need to be a part of the form-parsys node,

Aem Replace node along with subnodes in a single request

I have a widget that creates a POST request that creates a node and a dynamic number of subnodes, like: ./sling:resourceType:app/component _charset_:utf-8 :status:browser ./data:data ./a/a:one ./a/b:two ./b/a:one ./b/b:two This works nice the first time. I get a node along with subnodes a and b. The problem is in subsequent requests. I need all subnodes to be removed before creating the new ones. So if previously I created subnodes a,b,c and d, the previous request would result just in subno

Aem Sling Mapping Rewrite Rules do not rewrite paths in meta tags

I have sling mappings setup that rewrite outgoing paths to the external URL. An example of this rewrite: /content/www-sitename/home.html would be rewritten to http://www.sitename.com/home.html I have also configured the LinkCheckerTransformerFactory: linkcheckertransformer.rewriteElements=["a:href","area:href","form:action","link:href","meta:content"] Some HTML on a page component: <head> <link rel="canonical" href="/content/www-sitename/home.html" /> <meta name="canonical

Aem CustomPageFilter Error

My requirement is to create a sitemap something similar provided in acs-aem-commons, I can get an xml by hitting http://localhost:4502/content/geometrixx/en.sitemap.xml , but it include the page on the basis of IsHideNav() or IsValid() criteria. Now there can be multiple properties in page-properties dialog like hide in navigation , on the basis of which my page will be include/exclude in sitemap. Below is the snippet from the SiteMapServlet : for (Iterator<Page> children = page.listCh

cq5 AEM 'pathfield' resizing

I use xtype 'multifieldpanel' from ACS.CQ library for 'multifield configuration'. And I can't set size for 'pathfield' in my dialog. I need 100% (fixed size in 'px' doesn't work too) similar with 'textfield'. I have tried all cases (width, boxMaxWidth, autoWidth), what I do wrong?? <links jcr:primaryType="cq:Widget" fieldLabel="Items Location" itemId="links" name="./links" xtype="multifield"> <fieldConfig jcr:primaryType="nt:unstructured"

Aem starting CQ in Debug mode. What happens with forking

I am pretty much interested in knowing that what happens to JVM forking when we start CQ in debug mode. I have gone through Adobe websites, but i am not much clear. Does we have to use -nofork option?? or it automatically does this. As of now, i understand it as this- start CQ in debug mode with command line using this parameter: java -Xmx8192M -agentlib:jdwp=transport........ -jar cq-author-4502.jar( nofork is not used ) CQ is started. CQ forks a new JVM process even if I have given too mu

Breadcrumb in AEM 6

I have a requirement to create breadcrumb in sightly. I have following code which is working fine in JSP. But i am struggling to convert the code to sightly because i am not getting the right methods in currentStyle object to get the "absParent" and others. Any help will be highly appreciated!! <%@ include file="/libs/foundation/global.jsp" %> <% final int startLevel = currentStyle.get("absParent", 3); final int endLevel = currentPage.getDepth(

java.lang.IllegalStateException: Request Data has already been read CQ5,AEM

I have a code in java that sends byte[] to CQ servlet using POST. The code for sending is : URL url = new URL("http://localhost:4503/bin/services/updateslafile"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); String authStr = "admin:admin"; // encode data on your side using BASE64 byte[] bytesEncoded = Base64.encodeBase64(authStr.getBytes()); String authEncoded = new String(bytesEncoded);

How does AEM resolve the JSON extension?

In CQ, if I request a resource such as localhost:4502/content/geometrixx/en.json, I would get the node information in JSON format. The same applies for the XML extension as well. My question is, where is it implemented that the node information is rendered in JSON format if the URL extension is json? Basically, the extension is just simply text and another part of the URL structure. Simply appending json won't magically fetch the information in JSON format. Obviously, one would have to use this

AEM: How to find the nodes with property name "customProp" and empty property value, using query builder?

There are nodes which have properties but no values. I am trying to avoid those nodes in query builder using, path=/content/ type=cq:Page 2_property=jcr:content/customProp 2_property.operation=exists 3_property=jcr:content/customProp 3_property.operation=unequals 3_property.value= But the empty value condition (3_property) is being ignored. How this can be achieved?

AEM Touch UI RTE common rtePlugins configuration

in classic ui, you can use xtype:cqinclude to include rtePlugins from a different path basically creating one place for standard RTE plugins, How can I do the same in Touch UI? I have tried using the granite UI include widget, but that does not help as it was not meant for including nodes, but granite widgets/components

Aem Sightly component ignores my clientLib (doesn't include links to css)

I use example from : blogs.adobe.com but my output html file doesn't include links to my css files. boilerplateSightlyPage.html: <html> <sly data-sly-include="head.html" data-sly-unwrap /> <sly data-sly-include="/libs/wcm/core/components/init/init.jsp" data-sly-unwrap /> <body> <div data-sly-test="${wcmmode.edit}"> <!--/* Show only in edit (author) mode */--> <h1>Simple Page Component Using Sightly</h1> </div>

AEM - How to tweak activation error message

We are working in an AEM 6.1 environment and have created an activation preprocessor that will stop pages from being activated if certain attributes are not set. That works great but we'd also like to change the error message that's displayed by the activation process when the preprocessor throws a ReplicationExcdeption. Can anyone point me to the code that actually displays the error message?

How to package groups (with users in it) from one AEM instance to another?

I need to package the groups/users withe their permissions to AEM 6.1 to 6.3. I have synced up the users through LDAP and used ACS ACLPackager to move groups and their permissions. So now I have all the groups and their permissions in the new environment. And I have all the users as well through the Ldap. Is there any way to assign the groups to the users directly as they were in the source instance, so that I don't need to assign them manually?

Location of User Profiles in AEM 6.2 JCR?

The out-of-the-box sample users that come with AEM are organized neatly in folders like /home/users/geometrixx/ and user-names that correspond to their email addresses. Why then when I create a user, does the profile get placed into a cryptic location like /home/users/n/nspbWko6RBR1JWylKRiT/profile, and how can I organize my own users into folders? This particular implementation is not integrated with an identity provider.

Aem How do I format a string for use in an inline script rendered as HTML?

I have the following properties string GET 50% OFF ANY M'EDIUM OR L"AR"GE PIZZA! I am using it in an HTML onclick markup like so onclick="trackPromoCta(encodeURI(${properties.ctaTwoTextRight @ context='text'}));" However this outputs invalid html. I tried @context of scriptString and that escapes but only for inside JavaScript not for inside HTML markup. I tried all of the other options as well and none of them actually escape special characters for rendering HTML. I saw someone once use a

AEM 6.x: How do I temporarily/programmatically disable the link checker? (trying to return a JSON with links back to browser)

So I have a Sling servlet that reads data from another API (let's call it APIX) and APIX gives me the data in JSON format. When I debugged my code, it seems the response I get from APIX is intact. When I pass the JSON I got from APIX to browser, I can see that AEM has "link checked" all the links I have in the JSON. I don't want AEM to do anything with my data. Base on this Adobe page, I added these lines in my code: protected void doGet(SlingHttpServletRequest request, SlingHttpServletRespo

Access variables that are set in page level JSP, in data-sly-use javascript of components in AEM HTL?

In a page level component I have set a variable. <c:set var="stepIndex" value="-1" scope="page"/> Now I author a few component on the page. These components should have access to the stepIndex variable. The components are written in HTL and I want to access stepIndex inside data-sly-use Javascript api. How can I achieve this ? I can do this using JSP scriplets using request. GET and SET attributes but I want to avoid that.

How to get the browser page URL without the domain name in the component's jsp/html aem6.3?

Let's say my page url is www.test.com/myproject/en/test.html. Now I need to get '/myproject/en/test.html' in my component's jsp/html file. We are using sightly. I am trying to use the below code to achieve it- <script> var x = window.location.pathname; alert(x); </script> I am getting the value /myproject/en/test.html in variable x, but not able to use the value in the meta tag as below- <link rel="icon" href="https://mywebsite.com ${x}"> How can I pass x's value her

Aem How to drag and drop a component over other components (other than parsys) in CQ5?

I have created a button component in CQ5 without inheriting existing button component. Now I want to place this button component over another custom Banner component by drag and drop method from sidekick. I gave the banner comp as parent for my button and in banner I gave this button in allowed children and made it as container too. also I have created design dialog for the banner component where I added this button component in allowed components option. still I am not able to drag and drop t

AEM/CQ: UI for one-off JCR-SQL / SQL2 / XPath queries with tabular output?

I am doing a little usage research in our AEM installation. I would like to find all instances of a component and see what value they have for a certain configuration option. So basically, I want to select the title and myOption properties from all nodes with sling:resourceType myComponent. I believe the JCR-SQL2 query would be: SELECT [title], [myProperty] FROM [nt:base] where [sling:resourceType] like 'path/to/my/component' My problem is, I can't find a UI in which to run this query. The

How to include AEM parsys in page component

I have the following line, in the page component file /apps/my-app/components/pages/homepage/body.html <div data-sly-resource="${ @path='right-parsys',resourceType='wcm/foundation/components/parsys'}"></div> And we are getting log messaages [.... GET /content/our-system/home/en.html HTTP/1.1] com.day.cq.wcm.msm.impl.LiveRelationshipManager Impl StarResource given at /content/our-system/home/en/jcr:content/right-parsys/*: no parent: no LiveCopy I have the following questions

Aem How do we capture the events in Tagging console?

I need to capture the events for tagging in CQ. Need to capture the tags whenever the users add/remove/change/delete tags in CQ tagging console. I have an idea to implement a workflow & launchers to handle the event handling in tagging console. Whenever such event occur, automatically the workflow will get trigger and get the events. I don’t know how to implement such workflow. Please share any url related to this. Also I heard that JCR listener, Is this helpful to manage event handling?

storing custom data in AEM 6.1 JCR repository

We just got AEM 6.1, and went through developer training, as well. I am coming from another CMS background (Sharepoint) and wanted to learn / know, if i need to create a list to store data into it, and refer that programatically, somewhere on the page or other common libraries in my project , how do i do that and where do i store the data , is that in the /etc folder. Not clear, I guess, what i learnt from the training is that data is stored in node types as Key / Value pair, so for example if i

Clustering in AEM

I am facing an error, which is something peculiar. I am using AEM 5.6.1. I have 2 author instances(a1 and a2) and both are in cluster. We are performing tar optimization on the instances daily between 2a.m. - 5a.m.(London Timezone). Now, in the error.log of a2, I am seeing the below error everyday in the above mentioned time: 419 ERROR [pool-6-thread-1] org.apache.sling.discovery.impl.cluster.ClusterViewServiceImpl getEstablishedView: the existing established view does not incude the enter

AEM/CQ: Removing toolbar actions Delete/Add on a parsys in Touch UI Mode

I am automatically rendering some components inside a parsys. I would not like these components to be removed or any other component added to this parsys. Only Toolbar Actions "Insert" and "Delete" should be disabled on the parsys. What is the best approach for resolving the issue? Regards, Sagar

Scene7 publish based on time in AEM

So I have assets publishing based on date and flowing to Scene7, how can i do it using time as an input along with date. So basically if the date is 2020-02-17T16:30:00.000+05:30, I have a job which will publish the asset at particular date. But I want it to publish at that time itself and not wait for the job which runs midnight.

Aem characters allowed on CQ5 file name

When uploading a file(an image to the dam folder as an example) on CQ5 using CRXDE lite or other UI interface, the system would give an error message if the file being uploaded has invalid characters. I just found out that [ and ] are not allowed as part of file names. But when uploading file using a non-UI interface, SlingPostServlet for example, the character [ gets replaced with the percent encoding representation(%5D) and no error was generated. Is there some kind of list/doc that woul

Aem Autocomplete plugin for RTE in CQ

I want to customize the RTE in CQ. I will input some complex medical terminologies to the CRX through scaffolding. Whenever author writes an article they should be able to autocomplete these terminologies. I see that there is a Jquery plugging for autocomplete but how do I include this in my CQ RTE. Thanks

Aem CQ - Moving content from one page to another

I realize that this is a pretty specific question but I would imagine someone has run into this before. So I've got about fifty pages or so that were created about a year ago. We're trying to revamp the page with new components specifically in the header and the footer. Except the content in the main-content area will stay the same. So I'm trying to move over everything from the old pages to the new pages but just keep the main-content area. The problem is I can't just change the resource type o

Aem adobe cq publish live copy page based on another live copy page

I have an Adobe CQ 5.5 with site structure like that: /content/mysite/en (blueprint) /content/mysite/en_us (live copy of ‘en’) /content/mysite/en_cn (live copy of ‘en’) EN_US and EN_AP have approximately the same number of authored pages. However, the number of published pages are different. I need to add a new live copy and publish it: /content/mysite/zh_cn (live copy of ‘en’) ZH_CN should have the same pages published as EN_CN. How can I achieve that without man

AEM : Removing auto generated divs

I am including a component like this: <c:forEach begin="0" end="${selectList-1}" varStatus="loopSubmenu"> <sling:include path="submenu_${loopSubmenu.index}" resourceType="aemdevcenter/components/content/global-header/submenu" /> </c:forEach> and to get rid of the auto generated divs I have included the below code in my global.jsp <% if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN && WCMMode.fromRequest(r

Serach Node using Query Builder In AEM?

i need to get some asset node use Query Builder How I search i am gving folder path 1 :/content/dam/assets/en_us/myDatas/c02442188 2: /content/dam/assets/en_us/myDatas/c02442189 3: /content/dam/assets/ar_sa/myDatas/c02442170 4: /content/dam/assets/spanish/myDatas/c02442171 5: /content/dam/assets/spanish/B/c02442172 from thse asset i need to get only 1,2,3,4 which means 'myDatas' folder contains. need to get this nodes using query builder i started query builder like this path=/content/da

Package restoration in AEM CQ5

Is there any way a deleted package can be restored or a history of package installation can be seen in AEM CQ5? Please help. Thanks in advance.

How AEM DAM Asset renditions are getting used in AEM?

I know that while uploading any Image/Asset into AEM DAM will create the renditions, but am wondering that how these renditions are going to be used? Generally when doing content authoring we will be pointing to the DAM asset paths only, but never saw using particular renditions paths of the image. can anyone help me to give an example for using this renditions.?

Default values in OSGI configuration in AEM

In AEM servlet, I have set the four default values of OSGI configuration. First time when I build the project, In Felix console, I can see four osgi configurations. But once I update the configurations, following scenarios are happening. Can somebody please confirm if this is the way OSGI works. Once I update/delete the configurations (atleast one config is there), and if I build again, default values are not getting restored. It remains in the previous modified state. I think is the correct

Not able to get unique session for logged-in user in AEM 6.3

I have the below requirement: I am using AEM 6.3 version. There is a third party application which uses a SOAP Client. The SOAP client has few methods which are needed to be implemented. For one of the methods I need to provide a session ID of the logged in AEM user (The session object should have some basic information about the logged in user, the expiry time etc.). I would need session ID on the author instance only. The third party application needs AEM pages information from the AEM author

Aem how to pass string to cq dialog textfield

In cq dialog.xml I have the following textfield: <foo jcr:primaryType="cq:Widget" name="./foo" xtype="textfield"/> In javascript, I have the following code: function baar(){ var myString = "test";} How to pass myString to the cq Dialog textfield?

AEM: Access component rendition only, not the whole page containing it

I have a component that performs pagination with its suffix. So, /contents/myproject/search.html/1 brings the first page displaying 10 results /contents/myproject/search.html/2 brings the second page displaying 10 different results Now I've been asked to make it more dynamic and add a next button to page 1, so it will append the next 10 results, instead of having another separate page load. My plan is to use JS and make an AJAX call to the following page, find the div I want, take those 10 r

  1    2   3   4   5   6  ... 下一页 最后一页 共 9 页