Wednesday 06 July 2005 6:35:38 pm
Everything was fine until I try if-else block. In the override for register.tpl I try:
{section name=ContentObjectAttribute loop=$content_attributes sequence=array(bglight,bgdark)}
{if eq( $ContentObjectAttribute:item.contentclass_attribute.id, 12 )}
it is 12 <br />
{else}
another id <br />
{/if}
{/section}
And I got empty page. I made it more obvious:
{section name=ContentObjectAttribute loop=$content_attributes sequence=array(bglight,bgdark)}
{if eq( 12, 12 )}
it is 12 <br />
{else}
another id <br />
{/if}
{/section}
But it didn't change anything. What am I missing here?
|