Page 1 of 1

CG Calendar - next previous inline display issue

Posted: Tue Sep 22, 2009 8:58 pm
by harleyquinn
I'm having inline display issues with CGCalendar module in display="calendar" mode.

I have a 2-column layout with the calendar in the left column under a menu.

Ideally this is how I need the calendar to behave:
• by clicking the prev/next links, the calendar table should replace itself in the same column it is in
• by clicking on a date on the calendar, it should take the user to a detail page and display the info in the content area while still displaying the calendar table in the left column

I thought I found a solution to my display problems from this thread discussion, http://forum.cmsmadesimple.org/index.php/topic,33035.0.html, but it's not completely working for me.

Basically the solution from that thread said by replacing "$inline" for true on lines 343 and 351 in function.displaycalendar.php, and 
using inline=0 in the cgcalendar tag and inline=1 for the month prev/next links, should reslove the problem, but it's not quite working... when clicking the next/previous links, the calendar table still shows in the content area instead of replacing itself in the left column, however clicking on a date, does take you to the detail page and display the event details in the content area while still displaying the calendar table in the left column.

I'm using:
CMSMS 1.6.5
CGCalendar 1.2.3
CGExtension 1.17.2

The tag calling the module on my page-template is:

Code: Select all

{cms_module module="CGCalendar" display="calendar" first_day_of_week="0" inline="0" detailpage="events" calendartemplate="sm_calendar"}
(keep in mind that I modified my function.displaycalendar.php, hence the inline set to 0)

Calendar template used is the basic sample template included with CMSMS

Any help would be most appreciated.
Thanks!

Re: CG Calendar - next previous inline display issue

Posted: Tue Sep 29, 2009 8:19 am
by alas
I'have exactly the same problem,and i search a solution since 2 days, if you find a solution please don't forget to write the solution in this post and i will make the same thing (sorry for my english .... )

Re: CG Calendar - next previous inline display issue

Posted: Tue Aug 17, 2010 1:14 am
by NomadSoul
Exactly same problem...
harleyquinn wrote: Ideally this is how I need the calendar to behave:
• by clicking the prev/next links, the calendar table should replace itself in the same column it is in
• by clicking on a date on the calendar, it should take the user to a detail page and display the info in the content area while still displaying the calendar table in the left column
I'm playing with 'inline' parameter without results...
with inline = 1 : prev/next links work in a good way for months switching (calendar stay in its column).
with inline = 0 : info is displayed on detail page...
... but impossible to get both results in the same time.

It seems it worked with old parameter table_id (Calendar module)...

Re: CG Calendar - next previous inline display issue

Posted: Tue Aug 17, 2010 6:33 am
by Hypocrite

Re: CG Calendar - next previous inline display issue

Posted: Thu Aug 19, 2010 1:17 pm
by NomadSoul
I saw that it was fixed for you.

For me too! Thanks to Peciura's precious help found here: http://forum.cmsmadesimple.org/index.ph ... #msg208370

... I only replaced {$day.url} with {$day.url|replace:$actionid:'cntnt01'} in calendar template (+ use of inline, use_session, detailpage parameters)


Finally... is it a CGCalendar module bug or not?  ???