Hi All,
Been trying to make a dynamic menu with EE, but I need to be able to use status outside of the channel:entries tags but within it. this way I can do some if/else statements is there a way?
any help will be great.
{if segment_1 == 'guide' OR segment_1 == 'guide_view'}
<li class="active"><a href="http://{site_url}guide">Guide</a>
<ul>
<ul>
{exp:channel:entries channel="guide"
{if segment_2 == 'place1'}
status="place1"
{/if}
{if segment_2 == 'place2'}
status="place2"
{/if}
{if segment_2 == 'place3'}
status="place3"
{/if}
{if segment_2 == 'place4'}
status="place4"
{/if}
{if segment_2 == 'place5'}
status="place5"
{/if}
{if segment_2 == 'place6'}
status="place6"
{/if}
{if segment_2 == 'place7'}
status="place7"
{/if}
{if segment_2 == 'place8'}
status="place8"
{/if}
{if segment_2 == 'place9'}
status="place9"
{/if}
sort="asc" dynamic="no" }
<li>a href="{title_permalink='guide_view'}">{title}</a></li>
{/exp:channel:entries}
</ul>
{if segment_2 != ''}
{exp:channel:entries channel="guide" sort="asc" dynamic="no"}
<li><a href="http://{title_permalink=guide_view}">{title}</a></li>
{/exp:channel:entries}
{/if}
</ul>
</li>