smarty |upper in cmsms? [solved]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
pumuklee

smarty |upper in cmsms? [solved]

Post by pumuklee »

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
Last edited by pumuklee on Thu Feb 22, 2007 10:41 am, edited 1 time in total.
pumuklee

Re: smarty |upper in cmsms?

Post by pumuklee »

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
cyberman

Re: smarty |upper in cmsms?

Post by cyberman »

pumuklee wrote: so i think that {UDT|upper} it doesn't work
This must be the explanation - have tried it with {title} and it works ... don't know if this is a bug or a feature  ::).
Locked

Return to “Modules/Add-Ons”