Page 1 of 1

Should Calendar Event View Replace {content}?

Posted: Tue Sep 26, 2006 8:04 pm
by pgoneill
Quick question.  Shouldn't clicking on a single event using Calendar replace the {content}?

That's how it used to behave - CMSMS 0.13.  Now, I've upgraded to 1.0.2 and Calendar 0.7.3 and clicking on an individual event/day on the calendar simply replaces the calendar.  Not {content}.

For instance, in my template:
  {title}
 
    {content}
 
 
    Event Calendar
    {cms_module module="Calendar" table_id="calendarHome" date_format="%m/%d/%Y" first_day_of_week="0"}
    Events Menu
    {cms_module module='menumanager' start_page='events' template="minimal_menu.tpl"}                     
 
When a link inside the Event Calendar is clicked, it simply places that event/day in the place where the Calendar module is called.  It used to replace {content}.  Any ideas?  I'm stumped.

Re: Should Calendar Event View Replace {content}?

Posted: Thu Oct 12, 2006 8:54 am
by TeatroBorgatti
I have the same problem.
I've found an old topic where the developer wrote he was non going to implement this function on Calendar, inviting anyone to do it, but my poor php is not helping at the moment.

The trick would be being able to make the function DisplayEvent() (file function.displayevent.php called from action.default.php) execute in an other block, but simply at the moment I have no clues on how it would be possible.

So I'm here hoping some Guru will come and help us all too  :P

Re: Should Calendar Event View Replace {content}?

Posted: Thu Oct 12, 2006 1:09 pm
by calguy1000
It's in the module help...... it's all in there.

Re: Should Calendar Event View Replace {content}?

Posted: Thu Oct 12, 2006 2:32 pm
by TeatroBorgatti
I read the module's help almost a hundred times and never noticed....I'm gonna feel dumb again.......anyway, thanks calguy1000.....sorry...... :-\

Re: Should Calendar Event View Replace {content}?

Posted: Thu Oct 12, 2006 2:38 pm
by calguy1000
set inline=1 in your calendar tag, it'll then do what you want.

Re: Should Calendar Event View Replace {content}?

Posted: Thu Oct 12, 2006 3:22 pm
by TeatroBorgatti
ehm...yes, my last message meant I found it but...ok, nevermind, thanks ;D

Re: Should Calendar Event View Replace {content}?

Posted: Thu Oct 19, 2006 8:06 pm
by NomadSoul
wow.. finally!
inline=0 sends details of a calendar event to the {content} inside the page. great (I was fighting with Calendar module since Sept.)!

but... how I can do if I want to send event detail to a precise page? (a bit like pisearch module: you can say which page number to use).

I see var "returnid" does what I want, but I can't set it? any idea?

Re: Should Calendar Event View Replace {content}?

Posted: Thu Oct 19, 2006 9:39 pm
by calguy1000
That functionality isn't in there yet.