Page 1 of 1

Calendar - display category name in template?

Posted: Mon Jan 15, 2007 12:19 am
by numer9
Hey,
i want to show the event category's name in detailed template. i tried several ways - $event.category, $event.categories and some other, similar blind hits - but no luck. Is there a way to do it? thanks!

Re: Calendar - display category name in template?

Posted: Sat Nov 03, 2007 12:55 am
by Dr.CSS
I'm looking for the same thing...

Re: Calendar - display category name in template?

Posted: Fri Apr 18, 2008 2:16 pm
by nickbrewer
i also am looking to do this.... thanks.

Re: Calendar - display category name in template?

Posted: Fri Apr 18, 2008 6:38 pm
by leslie894
It depends on the template you are using:

In calendar display mode and upcominglist display mode, the category information is available as an array in $event.categories.

When displaying events, the category information is available in the array $categories.

There is no category information available in list display mode. This is an oversight that will hopefully be corrected in the (near?) future as it makes integration with CustomContent and FEUsers very difficult.

Leslie

Re: Calendar - display category name in template?

Posted: Thu Jan 08, 2009 2:36 pm
by benchfrooser