Page 1 of 1

Replacement tag syntax in relation to calendar Mod

Posted: Sun 25. Jun 2006, 07:34
by brewster66
I have successfully installed the ionrock calendar mod and would like to put in a replacement tag in my content to display the calendar. However, I am not sure of the syntax. From the documentation I got this:

Code: Select all

{CAL:Category Id #:Calendar template file:Event template file:Container Div id Name}
And I added the default templates to get this:

Code: Select all

{CAL:Category Id #:0 Calendar template file:maincalendar.template.php Event template file:default.event.template.php}
… but I am getting this error:

Code: Select all

Warning: file_get_contents(/wcms/include/inc_module/mod_calendar/inc_front/templates/0 Calendar template file): failed to open stream: No such file or directory in /wcms/include/inc_module/mod_calendar/inc_front/func.inc.php on line 38
I checked and the templates are where they are supposed to be for the calendar.

Line 38 is:

Code: Select all

$template = file_get_contents(PHPWCMS_ROOT.'/include/inc_module/mod_calendar/inc_front/templates/'.$main_template_file);
Not sure if this will make sense to anyone. I don't know alot about PHP code.

Posted: Tue 27. Jun 2006, 18:12
by brewster66
Well, I found some sample replacement tag examples in V. 3 of the calendar documentation:

Here they are and they work:

Code: Select all

{CAL:1:cal_noevents.php:events_left_table_165.php:0:2}
{CAL:1:cal_allevents.php:events_left_table_165.php:0:2}
{CAL:1:cal_eventsonly.php:events_listing.php:0:2}
Note: The last digit ":2" is if you want to use German, use ":1" for English.