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.

Question about Templates, Snippets

June 06, 2010 4:35pm

Subscribe [1]
  • #1 / Jun 06, 2010 4:35pm

    chealey

    95 posts

    Hey guys, i just had a question, it doesn’t have any high priority rather than simple curiosity to further my understanding of the system.

    Why am i able to put

    {exp:channel:entries channel="something"} {title} {/exp:channel:entries}
    in an embed template. however i am not able to put
    {title}
    in an embed template when the
    {exp:channel:entries channel="something"} {/exp:channel:entries}

    is surrounding the area where the embed template is being embedded?

    Is it because the ee tag code is being parsed before the embed template is being fetched? And if that’s the case, I understand that Snippets are fetched early so it’s not an issue there, how about global variables? Just curious, thanks for clarifying guys. 😊

  • #2 / Jun 06, 2010 7:51pm

    Lisa Wess

    20502 posts

    Embedded templates are parsed as their own entity.

    Snippets are parsed as part of their containing template, which is why this would work in a Snippet.

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

ExpressionEngine News!

#eecms, #events, #releases