Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Resources For A Specific Template
chietala
Just was wondering if anyone knew a way to specify resources (CSS, JS) to a specific template? The problem with setting the resources at the site level is that I don't need all the resources for each template, this leads to loading assets that are not needed into the pages that aren't going to use them.
Any help would be great.
Find more posts tagged with
Comments
vpatel
You can do set page level resources.
chietala
I realize you can manually set the resources at the page level but was wondering if their was a way to set them at the template level or the layout level. The people we have using the visual editor are not savvy enough to know how to do this or what resources to add.
retesh
Hi,
Is it possible to add resources (js, css) at template level or not.
I am facing a requirement which will be easier if the above is feasible otherwise I would need to think about workaround (lengthy solution)
Please help/suggest guys..
Thanks,
Retesh
TS 7.3.1| RHEL 5.3
Migrateduser
Template level include is not supported OOTB in Sitepublisher. It does not fall in line with reuse of templates across sites and branches. Site level include is the most appropriate way...followed by page level includes.
Ashish_Sangal
Hi,
If your template is using separate page-type and layout-type then you can configure those resources in layout file.
This can be rigid as you are hard coding the resources in layout file.
Rick Poulin
Or you could perhaps have a special component, parameterized differently on each template, that uses an external to include those resources via header injection. Then, just have that component output essentially nothing in the body of the page.