smarty, capture content block
Posted: Sun Mar 12, 2006 9:59 am
Hi, anyone any idea why this doesn't work?
(The idea is to have a oneline content block in the admin for each page so people can set the height of a css style if they want. If the height isn't given the height defaults to 400.)
Code: Select all
{capture name=theHeight}
{content block="height" wysiwyg="false" oneline="true"}
{/capture}
{if $smarty.capture.theHeight ne ""}
{$height = "400"}
{else}
{$height = $smarty.capture.theHeight}
{/if}
{$height}