I have created the proxy components for both teaser and carousel. While trying to use those components in my page styling and js is not applying. I have added clientlibs and embed property.
I have followed this reference https://experienceleague.adobe.com/docs/experience-manager-core-components/using/get-started/using.h...
Views
Replies
Total Likes
are you calling your client library on to your template/page?
If not,
1. Click on edit template, once the template editor is opened,
2. Click on Page policy from the properties panel, and author your clinetlib category name as shown below.
(or)
On your structure/page component, call your client-library css files on customheaderlibs.thml and
<sly data-sly-use.clientLib="/libs/granite/sightly/templates/clientlib.html"
data-sly-call="${clientlib.css @ categories='<category-name>'}"/>
js files on customfooterlibs.html
<sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html">
<sly data-sly-call="${clientlib.js @ categories='category-name'}"/>
</sly>
Thank you.
Please check sample implementation and usage of custom css and js using proxy component
1. Clientlibs are at - https://github.com/arunpatidar02/aemaacs-aemlab/tree/master/ui.apps/src/main/content/jcr_root/apps/a...
3. site clientlibs in the policy https://github.com/arunpatidar02/aemaacs-aemlab/blob/84d66ff4880539020942a7b2b70b0af9a73bd936/ui.con...
I have components in this path "/apps/weretail/components/content/teaser"
If I try to use those components in my page they are not working. Styling and js are not applying to the component.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies