Can anybody post a valid example of using @FILE when setting the &tpl parameter? Thanks!
Are you sure you mean to use the @FILE binding ?
Or did you mean the
IncludeFile snippet which allow you to work with files used as tpl’s ?
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
@FILE can only be used in a Template Variable, not in snippet as far as I know. Though you can use @FILE in TV and use that TV in the snippet.
Its cool to know that it works like that. Thanks heliotrope.
Others: Please see the post below for example.
Some snippet supports this syntax:
Ditto for instance
Maxi Gallery should
tvExplorer
&tpl=`@FILE:assets/....`
:-)
I stand corrected and it’s duly noted !
Quite handy
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Thanks Mark for the tip !
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Hi,
we should normalize the use of @FILE
in MG => else if(substr($tpl, 0, 6) == "@FILE:") {
tvExplorer uses the same syntax.
The best practice should be @FILE + space
:-)
that right there is just
b e a u t i f u l !!!!!
can @DOCUMENT be used as well?