Khronos listview

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
steven_germany
Forum Members
Forum Members
Posts: 34
Joined: Tue Apr 21, 2009 6:52 pm

Khronos listview

Post 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 :-)
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1594
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Khronos listview

Post 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.
Not getting the answer you need? CMSMS support options
steven_germany
Forum Members
Forum Members
Posts: 34
Joined: Tue Apr 21, 2009 6:52 pm

Re: Khronos listview

Post by steven_germany »

PERFECT!!!! Thank you!!!!!
Post Reply

Return to “Modules/Add-Ons”