Calendar - display category name in template?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
numer9

Calendar - display category name in template?

Post 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!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Calendar - display category name in template?

Post by Dr.CSS »

I'm looking for the same thing...
nickbrewer
Forum Members
Forum Members
Posts: 12
Joined: Tue Oct 31, 2006 11:28 pm

Re: Calendar - display category name in template?

Post by nickbrewer »

i also am looking to do this.... thanks.
leslie894

Re: Calendar - display category name in template?

Post 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
benchfrooser
Forum Members
Forum Members
Posts: 28
Joined: Thu Jan 08, 2009 1:28 pm

Re: Calendar - display category name in template?

Post by benchfrooser »

Locked

Return to “CMSMS Core”