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

concat_configvar

 
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 -> Plugins
View previous topic :: View next topic  
Author Message
BloodRath
Smarty Rookie


Joined: 06 Jul 2003
Posts: 23
Location: France

PostPosted: Tue Nov 18, 2003 11:12 am    Post subject: concat_configvar Reply with quote

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.... Wink
Back to top
View user's profile Send private message
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 -> Plugins 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