|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
tobias_l Smarty Rookie
Joined: 11 Aug 2004 Posts: 24
|
Posted: Thu Aug 12, 2004 12:32 pm Post subject: Dynamic block handler?? |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Aug 12, 2004 1:44 pm Post subject: |
|
|
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 |
|
|
|
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
|