Page 1 of 1

(SOLVED) CGBlog - How to display End Date

Posted: Sat Mar 22, 2014 4:51 pm
by WeeJimmyHat
I'm using CGBlog 1.10.3 (with CMSMS 1.11.10) to display a list of forthcoming events.

I'd like to use Start Date and End date fields to display event start and end dates on the event listings page.

Start Date is showing up on the frontend, but not End Date.

This is my code:

Code: Select all

{$entry->startdate|date_format:'%e %h %Y'} to {$entry->enddate|date_format:'%e %h %Y'}
Any idea why this isn't working? I've read the documentation and searched the forum and can't find a solution.

Thanks.

Re: CGBlog - How to display End Date

Posted: Sat Mar 22, 2014 6:58 pm
by chandra
Put this

Code: Select all

 
<pre>{$entry|print_r}</pre>


inside your detail template.

With this you will find out which values are available.

Re: CGBlog - How to display End Date

Posted: Sun Mar 23, 2014 1:50 pm
by WeeJimmyHat
That's a really helpful tip chandra, thanks!

Turns out enddate was a valid value, I just hadn't checked the 'use expiration date' box.