Also known as 'TVs', Template Varaibles are customisable fields that can be associated to a template. They appear when editing a resource and allow the user to enter further information in a standardised format.
Questions tagged [modx-template-varaiables]
3 questions
0
votes
1 answer
Listing MODX Articles with at least one common tag
Is it possible to use the getResources snippet to find related articles that have at least one common tag with the active resource?
[[getResources?
&parents=`xxx, xxx`
&showHidden=`1`
&limit=`10`
…

Niko Suominen
- 97
- 9
0
votes
0 answers
Processing MODX template variable
I think this is quite a basic TV question but couldn't find an answer.
I have a TV called previewImage. Usually, it contains a static string. For some dynamic pages, the TV value is a tag [[getPreviewImage]] which returns dynamically an image file…

Niko Suominen
- 97
- 9
0
votes
1 answer
Date TV format appears differently in getResources template chunk
I am using the Date TV with a custom format: %b %e, %Y which appears as: May 6, 2015.
However, I am having issues getting this to appear correctly within a getResource chunk, eg: [[+tv.NewsDate]].
The date appears but doesnt follow the custom…

MeltingDog
- 14,310
- 43
- 165
- 295