(SOLVED) CGBlog - How to display End Date

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
WeeJimmyHat
Forum Members
Forum Members
Posts: 18
Joined: Fri Feb 18, 2011 10:17 pm

(SOLVED) CGBlog - How to display End Date

Post 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.
Last edited by WeeJimmyHat on Sun Mar 23, 2014 1:51 pm, edited 1 time in total.
chandra

Re: CGBlog - How to display End Date

Post 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.
WeeJimmyHat
Forum Members
Forum Members
Posts: 18
Joined: Fri Feb 18, 2011 10:17 pm

Re: CGBlog - How to display End Date

Post 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.
Post Reply

Return to “Modules/Add-Ons”