![]() This last one is a Chrome plugin that is especially useful so I couldn’t leave it off the list. It’s very useful when dealing with caching issues. Using the below query string parameter wipes away the ClientLibs and designs. There is also the option to run SQL and SQL2 queries to navigate the JCR as well.ħ. Just run the following XPath can do a variety of other things such as finding Pages that have a particular property, or pages built from a particular template just to name a few. Say I want to find where all instances of a component are on a page. You can do this by navigating to CRXDE, clicking on the Tools Tab > Query and entering your XPath Query. One of the great features about AEM is the ability to easily query the JCR. So essentially, the ClientLibs will be returned as multiple files instead of one file.Ħ. You will notice that it will return all of the individual files that the ClientLibs include. One extremely helpful trick when debugging a CSS or JS issue is ?debugClientLibs=true which you apply as a query string parameter to your URL. The issue only appears to be in Chrome, but if you experience it just clear your browser cookies by going to:Ĭhrome Settings > More Tools > Clear Browsing Data > Ensure Cookies Checkbox is checked.Īfter you’ve followed these steps, login again and you’ll be good to go.ĥ. I originally thought I was one of the only ones that encountered this, but I’ve had a few colleagues run into this problem as well. You can do this by simply adding a query string parameter of:Ĥ. Quickly navigate to the various WCMModes. Navigate to: and simply click the “recompile all jsps” button.ģ. AEM has an easy way for you to do this via the OSGi console. One of the first things I do now if I think a fix should work but it’s not being reflected on the page is clear my JSP cache. I can’t tell you how many times I’ve fixed (or thought I fixed) an issue and couldn’t figure out why it wasn’t reflected when I pulled up the page. If you navigate to CRXDE, and in the area you normally view the properties of a node, you will see there is a “console” tab that you can click to open and view the logs.Ģ. It’s especially handy when you don’t have access to the physical server. ![]() I must admit, I didn’t realize you could do this one until a couple of months ago. I hope that the following list of tips and tricks will help you save time in your AEM journey.ġ. At iCi, we’ve been developing with AEM since it was named CQ, and all of us are continually learning with each new project. In any enterprise CMS, there are many moving pieces and technologies involved. I might be stating the obvious here, but the keyword in my first sentence is enterprise. You can also look into Sling Models.AEM is an enterprise level content management system. Here's an example of a Java bean extending the WCMUsePojo class. The only other thing that you need to handle is the context within the script tag in order to identify the type of XSS protection Sightly should apply. ![]() Here we use the data-sly-use block to tie the template with the Java bean and save it to a button object to be reused throughout the template. ![]() Move the logic into either Java or server-side JavaScript in order to leave your Sightly template clean and logicless. ' target ='' name=' button' id="wp-ctoa_button" class="button" role="button"> Have the following code, which will open a new window upon clicking on anchor link, same functionality has to be written in sightly. I've the following scriptlet in JSP adobe Cq5 and now migrating to Adobe Sightly/HTL. ![]()
0 Comments
Leave a Reply. |