The title really says it all. Listit2 displays the date fine enough BUT when there is a time field, it shows a date instead.
Running CMSMS 1.11.9 and Listit2 version 1.4.1
Any ideas folks?
Thanks
Martin
Listit2 won't display time
Re: Listit2 won't display time
The default summary template (and I guess the same for detail template) has this code:
The cms_date_format modifier probably has a default format for a date and not time, hence printing current date.
So, either remove it, of use a custom format for your demands, e.g:
Code: Select all
{elseif $fielddef.type == 'SelectDateTime'}
{$fielddef.name}: {$fielddef.value|cms_date_format}<br />So, either remove it, of use a custom format for your demands, e.g:
Code: Select all
{$fielddef.value|cms_date_format:"%H:%M"}-
burlington
- Power Poster

- Posts: 444
- Joined: Wed Dec 27, 2006 5:15 pm
Re: Listit2 won't display time
Thanks Velden. Worked fine.
By the way, do you know what file controls the input template. I am getting huge boxes for each field I want to use. The maximum size allowed does not seem to affect the size of the entry boxes.
Martin
By the way, do you know what file controls the input template. I am getting huge boxes for each field I want to use. The maximum size allowed does not seem to affect the size of the entry boxes.
Martin
Re: Listit2 won't display time
This might help: http://docs.cmsmadesimple.org/customizi ... -templates
Though not sure if it's usable with ListIt2
Though not sure if it's usable with ListIt2

