AEM Code Snippets
Todo split into separate categories ⚠️
Tools
FileVault / IntelliVault
Adobe AEM Repo Tool
Python AEM Api
https://git.corp.adobe.com/unilever-replatform/PyAEM
https://pypi.org/project/pyaem3/
AEM Component Help Pages
https://medium.com/@surajkamdi/adding-documentation-for-aem-components-ab0bced28c26
- First of all, Open the CRXDE console http://localhost:4502/crx/de/index.jsp
- Go to the component path. example - `
_/apps/<project-name>/components/general_
- Now create a new markdown file inside the component with the name README.md.
- Now add the following sample markdown text into README.md file.
- Now, go to http://localhost:4502/libs/wcm/core/content/sites/components.html and select Title Component from the list with a valid component group.
- Now copy the URL from the address bar. In my case, URL will be /mnt/overlay/wcm/core/content/sites/components/details.html/apps/Suraj/title
- Go to the component inside CRXDE Lite > cq:dialog and set the helpPath property and set the value from the above-copied path.
- Now allow and add the component to the page, Open the Dialog and Click on the Help (?) icon.
Steps to set Documentation as Default Active Tab
In order to show up documentation as the default active tab when the author clicks on the Help (?) icon, We need to overlay the AEM’s certain functionality. Just follow certain steps.
- Go to CRXDE Lite Console http://localhost:4502/crx/de/index.jsp
- Go to /libs/wcm/core/content/sites/components/details/jcr:content/content/single/content/items/content/items/tabs/items/documentation
- Right-Click on the documentation node and Select the Overlay Node option. Set the following properties on the Overlay Node dialog and Click on OK. Path: /libs/wcm/core/content/sites/components/details/jcr:content/content/single/content/items/content/items/tabs/items/documentation Overlay Location: /apps/ Match Node Types: Checked
Querying the JCR
Service User / System User
Touch-UI + Migration
Usage: http://localhost:4502/libs/cq/modernize/dialog/content/console.html