Yes i use double ==
A further test show the result is very dependant of where i put the IF statements in the template:
Doesn't work at all
Code: Select all
<!-- start content -->
<div id="content">
{if $sub_template == 8}
<p>Test 1</p>
{/if}
{if $sub_template == 8}
<p>Test 2</p>
{/if}
{if $friendly_position != 2.1}<h1>{title}</h1>{/if}
{content}
</div>
<!-- end content -->
Only show Test 2
Code: Select all
<!-- start content -->
<div id="content">
{if $sub_template == 8}
<p>Test 1</p>
{/if}
{if $friendly_position != 2.1}<h1>{title}</h1>{/if}
{content}
{if $sub_template == 8}
<p>Test 2</p>
{/if}
</div>
<!-- end content -->
Show both Test 1 & Test 2
Code: Select all
<!-- start content -->
<div id="content">
{if $friendly_position != 2.1}<h1>{title}</h1>{/if}
{content}
{if $sub_template == 8}
<p>Test 1</p>
{/if}
{if $sub_template == 8}
<p>Test 2</p>
{/if}
</div>
<!-- end content -->
Those there is not showing isn't visible in the Source code either - So it's proberly not a CSS issue?
The common thread is the result only showing when placed further down than {content} except {if $friendly_position != 2.1} work wherever i place it in the template!
It's properly very logic but i just can't see it (yet)!