[SOLVED] CGCalendar and Calendar Template disappearing

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
j4web
Forum Members
Forum Members
Posts: 46
Joined: Fri Aug 29, 2008 6:17 pm

[SOLVED] CGCalendar and Calendar Template disappearing

Post by j4web »

Hello All,

I am upgrading a website to use the CGCal and having issues ... I've got 1.9.2 installed and CGCal 1.5.6

The page comes up just fine when I use a template that has 1 column for the nav / news on the left.

When I attempt to use the standard Calendar template from the list ... the content section within the page edit area completely disappears ... despite the fact that I am leaving it as a content item.

What I want: I want to use the template where only the calendar shows up on that page ... with a back to home button and that's it -- which is what I believe the Calendar template is, but it is not working correctly within the page content section.

And yes, within my calandar template I do have this in there:

{* Start Content (Navigation and Content columns) *}
<div id="content">


{* Start Content Area *}
<div id="main-calendar">
<div style="float: right;">{print showbutton=true script=true}</div>
<h2>{title}</h2>
<p><a href="http://www.graceofav.org/index.php">Back to Home</a> </p>
{cms_module module="CGCalendar" display='calendar' first_day_of_week=0 use_session='true'}
<p><a href="http://www.graceofav.org/index.php">Back to Home</a> </p>

{* Start relational links *}
<div class="hr"></div>
<div class="right49">
<p>{anchor anchor='main' text='^ Top'}</p>
</div>
<div class="left49">
<p>{cms_selflink dir="previous" label="Previous page: "} <br />
{cms_selflink dir="next"}</p>
</div>
{* The label parameter doesn't need to be there if you're using English, but is here to show how it's used if you don't want the English text "Previous page" *}
{* End relational links *}

<hr class="accessibility" />
</div>
{* End Content Area *}

Any ideas or help?

TIA
Last edited by j4web on Tue Jan 25, 2011 7:19 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: CGCalendar and Calendar Template disappearing

Post by Dr.CSS »

First of all you have to have {content} tag in your template somewhere if you ever hope to edit it as a page where you can call your calendar tag in the content edit box and not having {content} in it the calendar won't work as most all modules use the {content} to post events to when clicking them...
j4web
Forum Members
Forum Members
Posts: 46
Joined: Fri Aug 29, 2008 6:17 pm

Re: CGCalendar and Calendar Template disappearing

Post by j4web »

I added {content} here:

{* Start Content Area *}
<div id="main-calendar">
<div style="float: right;">{print showbutton=true script=true}</div>
<h2>{title}</h2>
{content}
<p><a href="http://www.graceofav.org/index.php">Back to Home</a> </p>
{cms_module module="CGCalendar" display='calendar' first_day_of_week=0 use_session='true'}
<p><a href="http://www.graceofav.org/index.php">Back to Home</a> </p>


and now there are two calendars on the page for January and it is not linking / showing the detail event that is in there ...

I am sorry, I am at a total loss ... can someone explain perhaps a little better where and how this is supposed to be in there?

TIA
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: CGCalendar and Calendar Template disappearing

Post by Dr.CSS »

All of this should be in the Content*: box in that page not in the template...

<p><a href="http://www.graceofav.org/index.php">Back to Home</a> </p>
{cms_module module="CGCalendar" display='calendar' first_day_of_week=0 use_session='true'}
<p><a href="http://www.graceofav.org/index.php">Back to Home</a> </p>
j4web
Forum Members
Forum Members
Posts: 46
Joined: Fri Aug 29, 2008 6:17 pm

[SOLVED]: CGCalendar and Calendar Template disappearing

Post by j4web »

You are correct, of course.

I kept playing with it and moved the content there and took the other one out and that worked.

Thanks for the pointers in the right direction, it did help.
Post Reply

Return to “Modules/Add-Ons”