smarty, capture content block

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm

smarty, capture content block

Post 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.)
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!

CMSMS rules!
User avatar
chilsta
Forum Members
Forum Members
Posts: 52
Joined: Thu Oct 20, 2005 8:22 pm

Re: smarty, capture content block

Post 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*
Post Reply

Return to “Layout and Design (CSS & HTML)”