sorry if this was asked before, I've been through many pages of results without success...
We installed CGCalendar and are using the calendar template in our right column. But when we try to change months, lets says one month later, the page reloads, I still have my calendar in my right column in the current month and I get another calendar for the next month where my {content} tag is...
Is it at all possible to have the next (or previous) month display in the same spot?
Here are our information:
The tag calling CGCalendar - we need to keep inline='0', in order for our events to load in the detail page and not in the calendar spot:
Code: Select all
{cms_module module='CGCalendar' display='calendar' inline='0' use_session='true' detailpage='evenement'}Code: Select all
{strip}
<table class="calendar" id="cal-calendar">
<caption class="calendar-month"><span class="calendar-prev"><a href="{$navigation.prev}">«</a></span> {$month_names[$month]} {$year} <span class="calendar-next"><a href="{$navigation.next}">»</a></span></caption>
<tbody><tr>
{foreach from=$day_names item=day key=key}
<th abbr="{$day}">{$day_short_names[$key]}</th>
{/foreach}</tr>
<tr>
{* initial empty days *}
{if $first_of_month_weekday_number > 0}
<td colspan="{$first_of_month_weekday_number}"> </td>
{/if}
{* iterate over the days of this month *}
{assign var=weekday value=$first_of_month_weekday_number}
{foreach from=$days item=day key=key}
{if $weekday == 7}
{assign var=weekday value=0}
</tr>
<tr>
{/if}
<td {if isset($day.class)}class="{$day.class}"{/if}>
{if isset($day.events.0)}<a href="{$day.url}">{$key}</a>
{else}{$key}{/if}
</td>
{math assign=weekday equation="x + 1" x=$weekday}
{/foreach}
{* remaining empty days *}
{if $weekday != 7}
<td colspan="{math equation="7-x" x=$weekday}"> </td>
{/if}
</tr>
</tbody></table>
{/strip}Code: Select all
Version du CMS 1.6.6
CMSMailer 1.73.14
FileManager 1.0.1
MenuManager 1.6.2
ModuleManager 1.3.1
News 2.10.3
nuSOAP 1.0.1
Printing 1.0.4
Search 1.6.1
ThemeManager 1.1.1
TinyMCE 2.5.5
FormBuilder 0.7
CGExtensions 1.19
NMS 2.3.2
CGCalendar 1.5.2

