Hi. My goal is to get the lowest value (in this case: start time) from a TV for each weekday.
I have several documents (Yoga courses) with a TV called weekday containing Monday, Tuesday etc... and a TV called startTime containing 0900, 0930, 1000, 1030 etc... (not set as Time Stamp, just a number.)
The startTime variates.
I need, for each weekday, to show the lowest startTime. (That will show up as the Opening hour on that weekday.)
MODx Revo.
Parent resource ID = 12
Example:
Resource with TV weekday = Monday and startTime = 0900
Resource with TV weekday = Monday and startTime = 1030
Resource with TV weekday = Monday and startTime = 1100
Resource with TV weekday = Tuesday and startTime = 1100
Resource with TV weekday = Tuesday and startTime = 1000
Resource with TV weekday = Wednesday and startTime = 1030
Resource with TV weekday = Wednesday and startTime = 0930
Resource with TV weekday = Wednesday and startTime = 0900
Resource with TV weekday = Wednesday and startTime = 1100
The result should be:
Monday open at: 0900
Tuesday open at: 1000
Wednesday open at: 0900
I guess this is a simple task, just not for me. Can someone please give me a clue on this one?