Skip to content

Instantly share code, notes, and snippets.

@bjornbjorn
Created November 25, 2011 09:12
Show Gist options
  • Save bjornbjorn/1393101 to your computer and use it in GitHub Desktop.
Save bjornbjorn/1393101 to your computer and use it in GitHub Desktop.
============( index.html )=================
{embed="sidebar" location="wiki"} <- In this case EE will treat the conditionals in sidebar.html as simple, and only one of the {exp:class} tags will run
{embed="sidebar"} <- in this case (where embed:location is empty) EE will treat all conditionals as advanced and run every single tag!
============( sidebar.html )=================
{if embed:location == 'wiki'}
{exp:class:wiki_blabla}
{/if}
{if embed:location == 'forums'}
{exp:class:forums_blabla}
{/if}
{if embed:location == 'docs'}
{exp:class:docs_blabla}
{/if}
@bjornbjorn
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment