Page 1 of 1

[SOLVED] Adding one stylesheet to some pages

Posted: Tue Nov 20, 2012 4:41 am
by frankmanl
For some pages in a website I need an extra stylesheet. But that extra sheet interferes with all other pages.
The way I solved this is making two templates, one with and one without the extra stylesheet.
But I rather have it solved using just one template and e.g. an if-statement to load the extra stylesheet when needed.
Is that possible? How could I do that?

Frank

Re: Adding one stylesheet to some pages

Posted: Tue Nov 20, 2012 11:42 am
by Jos
You can put a smarty tag in the "Page Specific Metadata" field of a page, like {cms_stylesheet name='myspecialstylesheet'}

Re: Adding one stylesheet to some pages

Posted: Thu Nov 22, 2012 4:23 am
by frankmanl
Just what I looked for.
Thanks,

Frank