I have a page for a sports club based on ModXCMS 2.1.4. For a list of sport classes I have appr. 30 Documents for the different. Each of this has template variables like abteilung, Wochentag, Startzeit, etc. The tv.Wochentag contains Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag,Sonntag as weekdays.
Now my problem: The output is not sorted by the variable. Here my code:
[[getResources?
&parents=`19`
&debug=`1`
&tvFilters=`abteilung==[[*abteilung]]`
&sortby=`{tv.Wochentag:"Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag,Sonntag":"ASC",tv.UhrzeitStart:"ASC"}`
&tpl=`snipSportangebot`
&includeTVs=`1`
&tvPrefix=``
&limit=`0`
&processTVs=`1`]]
Finaly I would like to sort by Wochentag (Weekday) and StartZeit (Starttime/Time). What have I done wrong? Has anyone any hint on this.
Thanks in advance
Christian
Join
weekday
andstarttime
to one TV - Input Type: Date, then you will be able to sorting by TV ingetResources
:https://rtfm.modx.com/extras/revo/getresources