Hi,
I have a template like this:
(I enabled “Display SQL Queries” and “Display Template Debugging?” options to see what’s happening.)
{if segment_4}
TESTING SEGMENT 4
{/if}
{if segment_4 == "" && segment_3 != ""}
TESTING SEGMENT 3
{exp:weblog:entries weblog="myweblog" url_title="{segment_3}" status="open" disable="member_data|trackbacks|categories|category_fields|pagination" dynamic="off"}
<div id="article">
<h1>{title}</h1>
{body}
</div>
{/exp:weblog:entries}
{/if}If I have an url like this -> http://www.domain.com/seg1/seg2/seg3/seg4/
I expect to see just “TESTING SEGMENT 4” and “exp:weblog:entries” tag in the second condition should not be executed.
RESULT: I see only “TESTING SEGMENT 4” as expected but the tag in the second condition is being executed.
What am I doing wrong?
Are the conditionals only for displaying tag outputs?
Or is it the parse order?
What should I do so that only the contents of “TRUE” condition will be executed?
Thanks
p.s.
Version: 1.6.6 - Build: 20081212