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.

EETags terminology confusion

April 30, 2011 12:17am

Subscribe [4]
  • #1 / Apr 30, 2011 12:17am

    Marc Miller

    84 posts

    The documentation states User-defined global variables are not run through the template engine, so you cannot place EE Tags, PHP, or variables inside them.

    When looking at the Agile Records demo install, there are 2 templates in the Global Variables that are confusing me:

    rss template contains {path=news/rss}
    rss_links template contains {site_url}

    And it works!

    Are path and site_url not considered EE Tags? I guess I just always considered anything surrounded by {} to be EE Tags, but apparently not?

    EE Tags must mean the templating system tags or references to addons tags? When the documentation refers to variables, it’s not referring to super global variables then, rather user defined ones or trying to pass in a variable to the template?

  • #2 / May 02, 2011 4:21pm

    Brandon Jones

    5500 posts

    Hi Marc,

    For the most part, standard and user defined global variables are parsed last - but as you’ve seen, there are exceptions to the rule. {path} and {site_url} are indeed EE tags, it’s just the parse order that’s having the effect here.

  • #3 / May 03, 2011 6:16am

    tidy

    196 posts

    Hi Brandon,

    Is there a list of the exception tags that work within global variables somewhere? This would be handy to know.

    Thanks,
    Janine.

  • #4 / May 04, 2011 1:02pm

    Sue Crocker

    26054 posts

    Hi, Janine.

    We’ve posted this to the dev team to see if we can get more information on this. Thanks in advance for your patience.

  • #5 / May 04, 2011 4:02pm

    Kevin Smith

    4784 posts

    Hey Janine—

    It looks like there’s not an official list of tags that behave as exceptions to the rule, and I wasn’t able to find a list that anyone in the community keeps. It looks like these two are just a few of the rare exceptions here.

    Kevin

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

ExpressionEngine News!

#eecms, #events, #releases