Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
Is it possible to add css files to specific templates.
So this is what i want to do:
The master template uses a global.css file
A template (connected to the master template) uses a sub.css file
This css file information should be included into the head section but this is inside the master template.
How can I use different css files for different templates?
Thanks
dominik,
you can do it the reverse way by using http://our.umbraco.org/projects/backoffice-extensions/cogworks-cogcsspickerdatatype on a document type and that i guess could have its own template?
Regards
Ismail
The easiest way to achieve this is to add a ContentPlaceHolder in the head of your master page
<html> <head runat="server"> <title>Untitled Page</title> ADD REGULAR STYLES HERE <asp:contentplaceholder ID="ExtraStyles" runat="server" /> </head> <body> </body> </html>
Then add the specific reference in the template page
<asp:content ContentPlaceHolderID="ExtraStyles" runat="server"> ADD EXTRA STYLES HERE </asp:content>
and if you're using Client dependency just use CssInclude in the template
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
css for templates (not master)
Hello,
Is it possible to add css files to specific templates.
So this is what i want to do:
The master template uses a global.css file
A template (connected to the master template) uses a sub.css file
This css file information should be included into the head section but this is inside the master template.
How can I use different css files for different templates?
Thanks
dominik,
you can do it the reverse way by using http://our.umbraco.org/projects/backoffice-extensions/cogworks-cogcsspickerdatatype on a document type and that i guess could have its own template?
Regards
Ismail
The easiest way to achieve this is to add a ContentPlaceHolder in the head of your master page
Then add the specific reference in the template page
and if you're using Client dependency just use CssInclude in the template
is working on a reply...