How to include clientlibs in you component using Sightly AEM/Adobe CQ/AEM6
How to use client libs in Sightly
First you should declare data-sly-use.clientlibInclude in your .html file
<div data-sly-use.clientlibInclude="${'/libs/granite/sightly/templates/clientlib.html'}"></div>
how to include only CSS of clientlib
<output data-sly-call="${clientlibInclude.css @ categories='clientlib1,clientlib2'}" data-sly-unwrap/>
how to include only JS of clientlib
<output data-sly-call="${clientlibInclude.js @ categories='clientlib1,clientlib2'}" data-sly-unwrap />
how to include both CSS and JS of clientlib
<output data-sly-call="${clientlibInclude.all @ categories='clientlib1,clientlib2'}" data-sly-unwrap />
Component not showing in Touch UI / SideKick of Classical UI in AEM / Adobe CQ5 / AEM6
To see component in the Touch UI
If you want to see the component in touch UI components list. The component Should have cq:editConfig nodeTo See Component in the SideKick in Classic UI
- The component should have dailog.
- if component have dialog and not showing in sidekick. Check title of Component it should starts with capital letter.
Subscribe to:
Posts (Atom)
-
How to Load TouchUI dialog Specific Clientlibs For touch UI dialog we can load specific client libs by using extraClientlibs property t...
-
Open package manager http://localhost:5632/crx/packmgr/index.jsp Click on the crate packge Enter package name ,versi...
-
1. Create a clientlibs node (nodeTypecq:ClientLibraryFolder) under the root node of the project. e.g. /apps/training Assign the foll...
-
Sample Code Snippet HTL(Sightly) Component Snippet <div data-sly-use.mapIterator="MapIterator"> <!--/* Get value o...
-
AEM CSRF Issue / Forbidden POST Call in AEM AEM providing CSRF Protection from 6.0 version on wards. if you are using granite.jquery d...