Embed Calendar Template into News Template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
cpansewicz
Forum Members
Forum Members
Posts: 142
Joined: Fri Jun 17, 2011 12:22 am

Embed Calendar Template into News Template

Post by cpansewicz »

Hi,

Is is possible to add a Calendar into a News Module template?

Adding the below line of content into a News template "doesn't work".
{cms_module module='CGCalendar' display='upcominglist' upcominglisttemplate='upcominglist' category='general'}

I did try:
{capture}{cms_module module='CGCalendar' display='upcominglist' upcominglisttemplate='upcominglist' category='general'}{/capture}

But that didn't work either. I read about this somewhere before, but couldn't find the post in the forum.

Thanks for any advice!
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: Embed Calendar Template into News Template

Post by psy »

Make certain that the News variable and the CGCalendar variable are different, eg not both $item.

If they are, change the News $item to something else before calling the calendar.
cpansewicz
Forum Members
Forum Members
Posts: 142
Joined: Fri Jun 17, 2011 12:22 am

SOLVED: Embed Calendar Template into News Template

Post by cpansewicz »

Hi, Thank you for that reply. I don't think I explained my issue correctly, and then in the meantime, I figured out the solution.

When I put the following line of code into my news template:

{cms_module module="CGCalendar" display="upcominglist" upcominglisttemplate="upcoming" category="{$entry->extra}"}

I needed to change the quotes to double quotes, and then the news module would call in the calendar module.

Thank you for your time.
Post Reply

Return to “Modules/Add-Ons”