Hi guys, i ran into a problem today. I want to give a template variable to snippet as argument, but i was unable so far. Here is how it goes:
[!products? &cat=’X’ &lang=’[*my_tmpl_variable*]’ !]
I tried *,[,! nothing worked. Is there even a way to parse this variable for the current page?
Which snippet you are using? Is it from MODx extras section or custom built?
-
☆ A M B ☆
- 24,524 Posts
If you’re using it as a parameter like that, it should be available automatically as $lang.
-
☆ A M B ☆
- 24,524 Posts
What output does your TV produce (if you just have the TV in your content, what does it display)?
Is it even possible to access template variable and to return the value for the current page?