Created
November 25, 2011 09:12
-
-
Save bjornbjorn/1393101 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============( 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} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Low explains: http://twitter.com/#!/low/status/139996992381259776