Page 1 of 1

[solved] Help needed with Calendar module!

Posted: Wed Dec 17, 2008 3:03 am
by Apprentice
Hello,

I'm having problems installing custom Calendar template, basic Calendar settings are working ok. Calendar module doesn't display anything with current settings.

Code on my page is like this:

{cms_module module="Calendar" display="upcominglist" category="keikat" }

Category is also custom, but I think it's really about display setting. I have template named upcominglist in "Upcoming Templates" -section.

There is reference in Calendar modules help section that
------------------------------
upcominglisttemplate
Used with display=upcominglist, this parameter allows you to specify a non default upcominglist template.
------------------------------

How can I exactly use this parameter? Could anyone give an example or do someone notice that there is something else wrong here?

Thank you in advance.

Re: Help needed with Calendar module!

Posted: Wed Dec 17, 2008 3:09 am
by JeremyBASS
>>>>display="upcominglist" 


may be a bug...  I have that happen to...

FYI all true false is 1 0 too, despite what the help says...

Re: Help needed with Calendar module!

Posted: Wed Dec 17, 2008 3:25 am
by Apprentice
Thanks but couldn't solve problem.

I didn't understand this: " all true false is 1 0 too".

Re: Help needed with Calendar module!

Posted: Wed Dec 17, 2008 3:28 am
by JeremyBASS
in the help...

like...
use_session  Use a session variable to store the current month of the calendar. Default is true. (optional)
where it says "true" it mean "1"... I was just given you a heads up...

Re: Help needed with Calendar module!

Posted: Wed Dec 17, 2008 3:35 am
by JeremyBASS
ok... I was reading it off...


{cms_module module="Calendar"  upcominglisttemplate="Sample" display="upcominglist" use_session="0" limit="6"}


solved it for my self to... man someone needs to rewrite so reads clearer... lol...

that works for me...

Re: Help needed with Calendar module!

Posted: Thu Dec 18, 2008 10:02 pm
by Apprentice
Ok. Good that you got it working! There is still something wrong with my settings. I'm desperately trying to figure it out...  :-\

Re: Help needed with Calendar module!

Posted: Thu Dec 18, 2008 10:11 pm
by JeremyBASS
this is what you placed?

{cms_module module="Calendar"  upcominglisttemplate="upcominglist" display="upcominglist" category="keikat"}

BTW... you should change the name of the template... that may be the issue too...

Re: Help needed with Calendar module!

Posted: Thu Dec 18, 2008 10:30 pm
by Apprentice
I changed my template name in Upcoming Templates -section from 'upcominglist' to 'test'. I set it as default template.

This is what I have now on the page:

{cms_module module="Calendar"  upcominglisttemplate="test" display="upcominglist" category="keikat"}

This is what I have on template:

{foreach from=$events key=key item=event}


{$event.event_date_start|date_format:"%d.%m.%Y"}


{$event.fields.city}


{$event.event_title}


{if $event.event_summary}{$event.event_summary}{/if}


{if $event.event_details}{$event.event_details}{/if}




{/foreach}

There is no visible sign of anything concerning calendar in the net...

Re: Help needed with Calendar module!

Posted: Thu Dec 18, 2008 10:37 pm
by Apprentice
...and oh, forgot to mention, I of course have a calendar event that has been set to category 'keikat'.

Re: Help needed with Calendar module!

Posted: Thu Dec 18, 2008 10:43 pm
by JeremyBASS
ok.. from here you need to do what the forum instructions are... what versions and what's installed.. etc... then we can help...


you may also want to start from scratch...

use the default template,...  work from there... try that first before you give us your setup info...

jeremyBass

Re: Help needed with Calendar module!

Posted: Thu Dec 18, 2008 11:56 pm
by Apprentice
:) Finally got it working! Once again classic example of how so little can effect so much... Thank you JeremyBASS, you helped to clear up things!

I'm using CMS Made Simple 1.4.1 "Spring Garden" with CGExtensions 1.10.1 and Calendar 1.0 modules installed.

Here is what solved it:

I changed 'Sample' template from Calendar Templates -section to my own template.

'Sample' is like this:
-----------------------------------------
{strip}

{if $compact_view neq 1}
« {$month_names[$month]} {$year} »
{/if}

{foreach from=$day_names item=day key=key}
{$day_short_names[$key]}
{/foreach}


{* initial empty days *}
{if $first_of_month_weekday_number > 0}
 
{/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}


{/if}

{if isset($day.events.0)}{$key}
{if $summaries == true}

{foreach from=$day.events item=event}
{$event.event_title}
{/foreach}

{/if}
{else}{$key}{/if}

{math assign=weekday equation="x + 1" x=$weekday}
{/foreach}

{* remaining empty days *}
{if $weekday != 7}
 
{/if}





{/strip}
--------------------------------------

My own template is like this:

-------------------------------------
{strip}

{if $compact_view neq 1}
« {$month_names[$month]} {$year} »
{/if}

{foreach from=$day_names item=day key=key}
{$day_short_names[$key]}
{/foreach}


{* initial empty days *}
{if $first_of_month_weekday_number > 0}
 
{/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}


{/if}

{if isset($day.events.0)}{$key}
{if $summaries == true}

{foreach from=$day.events item=event}
{$event.event_title}
{/foreach}

{/if}
{else}{$key}{/if}

{math assign=weekday equation="x + 1" x=$weekday}
{/foreach}

{* remaining empty days *}
{if $weekday != 7}
 
{/if}





{/strip}
--------------------------------------

Re: Help needed with Calendar module!

Posted: Fri Dec 19, 2008 12:00 am
by JeremyBASS
great... I'm glad it is working... don't forget to put [solved]

have a great one today