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!
Calendar - display category name in template?
Re: Calendar - display category name in template?
I'm looking for the same thing...
-
- Forum Members
- Posts: 12
- Joined: Tue Oct 31, 2006 11:28 pm
Re: Calendar - display category name in template?
i also am looking to do this.... thanks.
Re: Calendar - display category name in template?
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
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
-
- Forum Members
- Posts: 28
- Joined: Thu Jan 08, 2009 1:28 pm