Forums / Setup & design / Strange trouble with prev/next calendar link

Strange trouble with prev/next calendar link

Author Message

Pascal France

Friday 05 October 2007 11:17:20 am

Hi,

Based on these two templates:

extension/ezwebin/design/ezwebin/override/templates/full/event_calendar.tpl
extension/ezwebin/design/ezwebin/override/templates/full/event_view_calendar.tpl

I did a fine working calendar:

http://www.luxpopuli.fr/cfdt/index.php/cfdt/rubriques_du_menu_gauche/mon_calendrier/(month)/10/(year)/2007

As we can see on the link above, the next/prev month links work perfectly (even after reloading the page).

The template codes used are here:
http://linuxorable.fr/apache2-default/ezp_calendar/event_view_calendar.tpl
http://linuxorable.fr/apache2-default/ezp_calendar/event_calendar.tpl

Now, I want the calendar is displayed on the right side of the home page. So I followed these steps:

1/ Activate for the right side the default calendar toolbar from the admin interface
2/ Copy design/standard/templates/toolbar/full/calendard.tpl to design/cfdt/templates/toolbar/full/
3/ Replace the default code of the template with the code of http://linuxorable.fr/apache2-default/ezp_calendar/event_calendar.tpl
4/ Do a copy of http://linuxorable.fr/apache2-default/ezp_calendar/event_view_calendar.tpl to design/cfdt/templates/toolbar/full/ and add a little code in order the toolbar is displayed only on the home page.
5/ Clear all caches.
The home page result is here:
http://www.luxpopuli.fr/cfdt/
...and the prev/next month links don't work anymore.

The first time I display the home page (I mean after clearing the caches) I can go to Sept, Aug, July etc... But if I click to next month to comeback then I go directly to October. And once to October, the prev/next link don't work anymore.

The same thing occures If I click to next month after clearing the caches: when I come back I go directly to October.

Thanks for your help

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Sunday 07 October 2007 9:29:02 am

Hi,

In fact, when I set the ViewCaching parameter to desabled (in [ContentSettings] section of site.ini.append.php), the right calendar works fine.

What should I do in order the calendar works even ViewCaching is set to enabled ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish