Joined: 21/06/2010 10:24:35
Messages: 46
Location: Melbourne, Australia
Offline
Hi guys,
I want to call my widget in my template. So if I do <wcm:widget path="widgets/left-menu" />
It works well, however I don't want to do that.
Indeed, I want to have a new arg in this tag lib in order to pass some information (<wcm:widget path="widgets/left-menu" param="125"/> ).
For example, imagine if I have ten templates and I want to call the same widget.
Imagine in my widget, I want to do
Nonetheless, I don't use the same id in my templates when I call this widget
So, I want to do something like that:
Joined: 04/06/2009 13:36:35
Messages: 286
Location: UK
Offline
Hiya,
Thanks for using weceem!
To pass data to widgets, you can pass in a model, but I think you can also just set an existing variable (although this is like ugly global variables!):