CGCalendar 1.14.3 how show category in detail template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
nikkio
Forum Members
Forum Members
Posts: 63
Joined: Sun Jun 08, 2008 12:34 pm

CGCalendar 1.14.3 how show category in detail template

Post by nikkio »

Hi all,

as the subject... how can I show the list of associated category in detail view of the event?

I've tried this but do not work

Code: Select all

{if isset($event.categories)}
{foreach from=$event.categories item='category'}
{$category->name}
{/foreach}
{/if}
Any help is appreciated

thank you!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CGCalendar 1.14.3 how show category in detail template

Post by calguy1000 »

In the event template:

{$event.categories} is an array of integer category id's.
{$event.category_names} is a string with a , separated list of category names.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
nikkio
Forum Members
Forum Members
Posts: 63
Joined: Sun Jun 08, 2008 12:34 pm

Re: CGCalendar 1.14.3 how show category in detail template

Post by nikkio »

Thank you Calguy!

It works!
calguy1000 wrote:In the event template:

{$event.categories} is an array of integer category id's.
{$event.category_names} is a string with a , separated list of category names.
Post Reply

Return to “Modules/Add-Ons”