Community

ArchivistGrouper sortBy TV

I made a List-Calender by getResources and now i want to group the items by TV “startDate”.
With the extra “Archivist.ArchivistGrouper” i can sortBy fields but not by TV.

Is there any other solution?

one simple solution could be, to loop over the startDate - TV, for example with a migxLoopCollection - call and have a seperate getResources-call for each startDate

Sounds great! How can the call look like when i want to group by month?

how looks your getResources - call currently?

[[!getResources? 
   &parents=`17,18,19,30,5`
   &limit=`10` 
   &includeTVs=`1` 
   &includeContent=`1` 
   &tpl=`tplTermine` 
   &sortbyTV=`startDate`
   &sortdirTV=`ASC`
   &tvFilters=`startDate>>[[!currentDateTime]]`
   &hideContainers=`1`
   &showHidden=`1`
]]