CG Calendar - next previous inline display issue

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
harleyquinn
Forum Members
Forum Members
Posts: 36
Joined: Fri Dec 22, 2006 4:29 pm
Location: Philadelphia, PA

CG Calendar - next previous inline display issue

Post 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!
alas
Forum Members
Forum Members
Posts: 33
Joined: Fri Mar 30, 2007 9:14 am

Re: CG Calendar - next previous inline display issue

Post 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 .... )
NomadSoul
Forum Members
Forum Members
Posts: 24
Joined: Tue Jul 25, 2006 12:45 am
Location: BE

Re: CG Calendar - next previous inline display issue

Post 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)...
Last edited by NomadSoul on Tue Aug 17, 2010 1:17 am, edited 1 time in total.
Hypocrite
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 26, 2009 6:25 am

Re: CG Calendar - next previous inline display issue

Post by Hypocrite »

NomadSoul
Forum Members
Forum Members
Posts: 24
Joined: Tue Jul 25, 2006 12:45 am
Location: BE

Re: CG Calendar - next previous inline display issue

Post 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?  ???
Post Reply

Return to “Modules/Add-Ons”