Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Editable templates and clientlibs

jakej40603950
Level 5
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
Arun_Patidar
Correct answer by
Community Advisor
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...

View solution in original post

2 Replies
Arun_Patidar
Correct answer by
Community Advisor
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...

View solution in original post