Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Dynamic block handler??

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Tips and Tricks
View previous topic :: View next topic  
Author Message
tobias_l
Smarty Rookie


Joined: 11 Aug 2004
Posts: 24

PostPosted: Thu Aug 12, 2004 12:32 pm    Post subject: Dynamic block handler?? Reply with quote

Is there any chance to use a Smarty function to do the same as the PEAR IT[x] Template Library in the way of parsing blocks and/or deleting unused block such as:

<!-- BEGIN my_block -->
... block content ...
<!-- END my_block -->
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Thu Aug 12, 2004 1:44 pm    Post subject: Reply with quote

You can do that and more with a section loop:

{section name=dummy loop=1 show=$bool}
... block content ...
{/section}

Where $bool is true or false to determine if the section displays.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP