Page 1 of 1

Khronos listview

Posted: Thu Feb 08, 2024 2:36 pm
by steven_germany
Hi there,

i have a new, up-to-date cms made simple installation. I'm working with the Khronos module. Everything is going well here too.
i am using the standard template "Khronos List View Sample" (for the moment)

i want change the list view so that days with multiple appointments look like this:
--------------
Friday, 12-12-2024
- Appointment 1
- Appointment 2
- Appointment 3
--------------
means that appointments that take place on one day are bundled together under one date from that day


At the moment it looks like this:
--------------
Friday, 12-12-2024
Text appointment 1
--------------
Friday, 12-12-2024
Text appointment 2
--------------
Friday, 12-12-2024
Text appointment 3
--------------


Many thanks for your help :-)

Re: Khronos listview

Posted: Thu Feb 08, 2024 2:55 pm
by DIGI3
One method would be to add something like this just before the closing /foreach:

Code: Select all

{$olddate=$event.event_date_start}
then at the start of the foreach:

Code: Select all

{if $event.event_date_start == $olddate}
// output just the event information
{else}
// output the starting div, date, and event info
{/if}
plus another check to output the closing div.

This is a rough example but should get you started.

Re: Khronos listview

Posted: Fri Feb 09, 2024 8:12 am
by steven_germany
PERFECT!!!! Thank you!!!!!