|
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 |
BloodRath Smarty Rookie
Joined: 06 Jul 2003 Posts: 23 Location: France
|
Posted: Tue Nov 18, 2003 11:12 am Post subject: concat_configvar |
|
|
i ve dirty realised this plugin
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: concat_configvar
* Purpose: concatenate an element with a config var and return the value
* of the config var so pointed
* param: var : the config var to concat
* with: the element to concat var with
* format : (optional) to transform with before concatenation
* author: Blood
* $id: 1.00 27.03.2003 : 23:27:00
* example:
* in test.conf :
* icono1 = test.gif
* in test.tpl :
* {foreach from=$menu key=key item=menuCourant}
* {concat_configvar var="icono" with=$key format="%02d"}
* {/foreach}
* result(depends of menu size):
* icono00
* icono01...
* -------------------------------------------------------------
*/
if someone interested _________________ froggies forever.... |
|
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
|