[solved] Help needed with Calendar module!

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Apprentice
Forum Members
Forum Members
Posts: 20
Joined: Tue Nov 11, 2008 11:25 pm

[solved] Help needed with Calendar module!

Post 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.
Last edited by Apprentice on Fri Dec 19, 2008 12:03 am, edited 1 time in total.
JeremyBASS

Re: Help needed with Calendar module!

Post 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...
Apprentice
Forum Members
Forum Members
Posts: 20
Joined: Tue Nov 11, 2008 11:25 pm

Re: Help needed with Calendar module!

Post by Apprentice »

Thanks but couldn't solve problem.

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

Re: Help needed with Calendar module!

Post 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...
JeremyBASS

Re: Help needed with Calendar module!

Post 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...
Last edited by JeremyBASS on Wed Dec 17, 2008 5:16 am, edited 1 time in total.
Apprentice
Forum Members
Forum Members
Posts: 20
Joined: Tue Nov 11, 2008 11:25 pm

Re: Help needed with Calendar module!

Post 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...  :-\
JeremyBASS

Re: Help needed with Calendar module!

Post 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...
Apprentice
Forum Members
Forum Members
Posts: 20
Joined: Tue Nov 11, 2008 11:25 pm

Re: Help needed with Calendar module!

Post 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...
Apprentice
Forum Members
Forum Members
Posts: 20
Joined: Tue Nov 11, 2008 11:25 pm

Re: Help needed with Calendar module!

Post by Apprentice »

...and oh, forgot to mention, I of course have a calendar event that has been set to category 'keikat'.
JeremyBASS

Re: Help needed with Calendar module!

Post 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
Apprentice
Forum Members
Forum Members
Posts: 20
Joined: Tue Nov 11, 2008 11:25 pm

Re: Help needed with Calendar module!

Post 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}
--------------------------------------
JeremyBASS

Re: Help needed with Calendar module!

Post by JeremyBASS »

great... I'm glad it is working... don't forget to put [solved]

have a great one today
Post Reply

Return to “Modules/Add-Ons”