Forums / Setup & design / Is there a way to override templates in stylesheets
Gabriel Ambuehl
Wednesday 16 February 2005 2:43:52 am
I'm playing around with the stylesheet functionality. I however can't seem to figure out if I can do template overrides within a stylesheet?
Is that possible? If so where do I need to place the files?
Visit http://triligon.org
Arran Price
Wednesday 16 February 2005 1:25:49 pm
Hi,Im not quite sure I uderstand the question but...
To override stylesheets I think you just put them in the design/your_site/stylesheet directory.
If you are wanting to change the style based on which node etc you might be in as per the template overrides, cant you just put logic in the template to display different div tags which will reference the different styles you want?
remember to put a reference to any stylesheet you use in the pagelayout.tpl eg:
@import url({"stylesheets/datastylez.css"|ezdesign});
Hope thats of some help.
Arran