Hi All,
I am trying to load a clientlibs JS when I am creating a new page but it does not work.
What I did:
You can check my Example here: Dropbox - MySample.zip
Now when i create a new page, i do not see the alert msg. but after i create it and when i want to modify properties, this alert will fire.
This can be solved if:
But as we know we should not modify nodes under /libs. So what should I do?
Views
Replies
Total Likes
You can overlay the node in /apps.
Hi,
The extraClientLibs added in cq_dialog will be loaded if the component is present on the page.It will not be loaded on the page creation if component is not on the page.
Please read the documentation: AEM Components for the Touch-Optimized UI which says:
"To have your client library loaded solely for your component dialog (i.e. it will not be loaded for another component) you need to set the property extraClientLibs of your dialog to the category name of the client library you have just created. This is advisable if your client library is quite big and/or your field is specific to that dialog and will not be needed in other dialogs."
Hi babak,
The clientlib will be loaded in the page when you edit the dialog first time incase of extraClientlib property.
If you want to load the clientlib in the component rendering. Better to load ClientLib in Component HTL file like below:
<sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html"
data-sly-call="${clientlib.all @ categories='person.dialog'}"/>
Views
Likes
Replies
Views
Likes
Replies