Modx 2.2
getResources : 1.4.2
TV name : eventDate (type = date)
Snippet for display a date in french :
[[!date-fr? &tv=`[[*eventDate]]`]]
Output example : Mardi, 10 janvier 2012
Chunk name : evenements
<div class="activite">
<h2 class="eventsTitre">[[+pagetitle]]</h2>
<h3 class="eventsDate">[[!date-fr? &tv=`[[*eventDate]]`]] à [[+tv.eventVille]]</h3>
[[+content]]
</div>
getResources call
[[!getResources? &parents=`16` &tpl=`evenements` &processTVs=`0` &includeTVs=`1` &sortby=`menuindex` &sortdir=`ASC` &includeContent=`1`]]
I have a problem with the eventDate TV in my chunk. If I write my snippet call in my chunk like this
[[!date-fr? &tv=`[[*eventDate]]`]]
the TV is not process, all the dates in my listing are the same ex: Mercredi 31 décembre 1969.
To see if my snippet was working, I use a string instead of the TV in the snippet call
[[!date-fr? &tv=`2012-01-27`]]
The output was correct «Vendredi 27 janvier 2012»
Does someone could gently tell me how to write a snippet with a TV as property in a chunk?
I hope I described my problem correctly, English is not my first language,
Thank you for answering
[ed. note: jber last edited this post 14 years, 9 months ago.]