Yugensoft
Well-known member
Hi,
Where can I find a list of the Django-style template variable filters for XF2? E.g. when you see {$someVar|number}
Also, how do I add one?
Secondly, how do I use view param in a macro? I.e. if I add a param: $reply->setParam('myParam', 'something'), how can I use it in any macro the associated template uses? This is a permission-like param that says whether a particular piece of info should be visible.
I don't want to inject it via a template modification to insert an arg-somethingSomething, as it's a global flag.
Cheers
Where can I find a list of the Django-style template variable filters for XF2? E.g. when you see {$someVar|number}
Also, how do I add one?
Secondly, how do I use view param in a macro? I.e. if I add a param: $reply->setParam('myParam', 'something'), how can I use it in any macro the associated template uses? This is a permission-like param that says whether a particular piece of info should be visible.
I don't want to inject it via a template modification to insert an arg-somethingSomething, as it's a global flag.
Cheers