hi
i want to ask how can i upper case a variable
i use something like this
{capture assign="lang_lang"}{lang_id}_{lang_id|upper}{/capture}
and teh lang_id is something like this de, fr, it...
my final value must be lang_lang = de_DE...
the problem is this smarty directive |upper doesnt work for me, it returns always de_de not de_DE
any ideea?
thanks
smarty |upper in cmsms? [solved]
smarty |upper in cmsms? [solved]
Last edited by pumuklee on Thu Feb 22, 2007 10:41 am, edited 1 time in total.
Re: smarty |upper in cmsms?
hi
i found the solution
the smarty upper it works
but for me in this way
{capture assign="langval"}{lang_id}{/capture}
{capture assign="lang_lang"}{lang_id}_{$langval|upper}{/capture}
by me it was the problem that {lang_id} is a user defined tag
so i think that {UDT|upper} it doesn't work
must be so {$variable|upper}
thats all folks
i found the solution
the smarty upper it works
but for me in this way
{capture assign="langval"}{lang_id}{/capture}
{capture assign="lang_lang"}{lang_id}_{$langval|upper}{/capture}
by me it was the problem that {lang_id} is a user defined tag
so i think that {UDT|upper} it doesn't work
must be so {$variable|upper}
thats all folks
Re: smarty |upper in cmsms?
This must be the explanation - have tried it with {title} and it works ... don't know if this is a bug or a featurepumuklee wrote: so i think that {UDT|upper} it doesn't work
