Expand my Community achievements bar.

SOLVED

Editable templates and clientlibs

Avatar

Level 5

In case of static templates, javascript libraries / clientlibs which were used across a section of the site or the entire site were usually added to the page component referenced by static templates. Even things like components to be added for contexthub were done in page component.

 

Is there a way to add such global clientlibs or components in case of editable templates? Or do these now need to be added in headers / footers used inside editable templates?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

In case of a dynamic template, you can still add clientlibs like before in the header and footer section the page. But you have extra clientlibs which you want to add for any particular template, you can add those clientlibs from the template.

 

You can add clientlibs from page policy.

screen_shot_2018-03-23at120604.png

https://docs.adobe.com/content/help/en/experience-manager-64/authoring/siteandpage/templates.html#pa...



Arun Patidar

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

In case of a dynamic template, you can still add clientlibs like before in the header and footer section the page. But you have extra clientlibs which you want to add for any particular template, you can add those clientlibs from the template.

 

You can add clientlibs from page policy.

screen_shot_2018-03-23at120604.png

https://docs.adobe.com/content/help/en/experience-manager-64/authoring/siteandpage/templates.html#pa...



Arun Patidar