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
Khronos listview
Re: Khronos listview
One method would be to add something like this just before the closing /foreach:
then at the start of the foreach:
plus another check to output the closing div.
This is a rough example but should get you started.
Code: Select all
{$olddate=$event.event_date_start}
Code: Select all
{if $event.event_date_start == $olddate}
// output just the event information
{else}
// output the starting div, date, and event info
{/if}
This is a rough example but should get you started.
Not getting the answer you need? CMSMS support options
-
- Forum Members
- Posts: 34
- Joined: Tue Apr 21, 2009 6:52 pm
Re: Khronos listview
PERFECT!!!! Thank you!!!!!