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!
Embed Calendar Template into News Template
-
cpansewicz
- Forum Members

- Posts: 142
- Joined: Fri Jun 17, 2011 12:22 am
Re: Embed Calendar Template into News Template
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.
If they are, change the News $item to something else before calling the calendar.
-
cpansewicz
- Forum Members

- Posts: 142
- Joined: Fri Jun 17, 2011 12:22 am
SOLVED: Embed Calendar Template into News Template
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.
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.
