Hello,
I love developing User Defined Tags and I'm wondering: is there a way to call a User Defined Tag (and pass parameters to it) within another one? Or to call smarty within a USD?
Thank you very much for your help!
Cheers
JS
Calling a User Defined Tag from another one
Calling a User Defined Tag from another one
An approach to mutli-lingual CMSMS using only content blocks:
http://forum.cmsmadesimple.org/index.ph ... 756.0.html
http://forum.cmsmadesimple.org/index.ph ... 756.0.html
Re: Calling a User Defined Tag from another one
USD?
I found this topic on smarty in UDT.
http://forum.cmsmadesimple.org/index.ph ... l#msg60579
Ronny
I found this topic on smarty in UDT.
http://forum.cmsmadesimple.org/index.ph ... l#msg60579
Ronny
Re: Calling a User Defined Tag from another one
Thank you Ronny, this surely helps!
I don't think that this really shows how to pass parameters, though, but I'll give it a try
Say if you have something like:
{myusd param="42"}
how would this translate to PHP code?
I don't think that this really shows how to pass parameters, though, but I'll give it a try

Say if you have something like:
{myusd param="42"}
how would this translate to PHP code?

An approach to mutli-lingual CMSMS using only content blocks:
http://forum.cmsmadesimple.org/index.ph ... 756.0.html
http://forum.cmsmadesimple.org/index.ph ... 756.0.html
Re: Calling a User Defined Tag from another one
Hm couldn't find this out. I'm sure somebody has already done it 

An approach to mutli-lingual CMSMS using only content blocks:
http://forum.cmsmadesimple.org/index.ph ... 756.0.html
http://forum.cmsmadesimple.org/index.ph ... 756.0.html
Re: Calling a User Defined Tag from another one
You can call a UDT from inside another UDT using CallUserTag()
For example .... to pass the hat style of the day to my handy UDT 'hats' I would do:
s.
For example .... to pass the hat style of the day to my handy UDT 'hats' I would do:
Code: Select all
global $gCms;
$params['style']="boater";
$tagOps = $gCms->GetUserTagOperations();
$tagOps->CallUserTag("hats",$params);