Page 1 of 1

smarty, capture content block

Posted: Sun Mar 12, 2006 9:59 am
by petert
Hi, anyone any idea why this doesn't work?

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}
(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.)

Re: smarty, capture content block

Posted: Fri Mar 31, 2006 3:52 pm
by chilsta
Hi-

Did you get anywhere with this?

I'd love to have a content block which I can specify how many lines there should be and whether it should scroll, using something like:

{content block="height" wysiwyg="false" lines='5' scroll="true"}

But to scrolling aspect isn't critical.

Thanks

C*