ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

{if} tags ignored in CSS template

June 21, 2009 2:55am

Subscribe [0]
  • #1 / Jun 21, 2009 2:55am

    adamrobo

    9 posts

    Is it normal for EE to ignore {if} tags in a CSS template? The brackets and everything are showing up in the CSS code that my page is reading.

    It would be really helpful for me to be able to have different CSS statements depending on the URL segments, and I would prefer not to make multiple CSS files for a few padding differences.

    Thank you for your help!

    UPDATE: Sorry to waste everyone’s time. I just found this:

    “Pages that are linked through the stylesheet tag will not be parsed as normal Templates. ExpressionEngine Tags and PHP inside the Template will not be parsed. The Template will be sent exactly as it is stored. This means that your CSS files will be much more light-weight as they do not require the use of ExpressionEngine’s template parser.”

  • #2 / Jun 21, 2009 2:28pm

    Greg Aker

    6022 posts

    adamrobo:

    I’m glad you got it figured out.  Don’t hesitate to start a new thread if anything else comes up!

    -greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases