Page 1 of 1

Calendar: Event in a different page/template?

Posted: Wed Feb 14, 2007 6:22 pm
by RazorMedia
I want my Calendar to display the events like on: http://www.drugsmart.com/

That is: when you click a date, the event shows in a space next to the calendar.

How can it be solved?

Look at the page i´m working with: http://www.jln.se/new/cms/index.php?page=kalender

Thanks

Re: Calendar: Event in a different page/template?

Posted: Thu Feb 15, 2007 6:22 am
by carasmo
Yeah the drugsmart calendar works like it should, click on a date and it shows the events for that date on the designated calendar page.

The CMSMS calendar module doesn't work that way, but you can almost do it.

Code: Select all

{cms_module module="Calendar" detail="1"  compact_view="0" table_id="small" inline="0" summaries="0"}
You have to add the

Code: Select all

 inline="0"
to the tag in your template

Then what will happen is whatever page you're on at the time, the details of that date will replace content (well almost). You will need to remove the {title} tag from your template and add it to the content itself to make a faked version of the site you're referencing. It's nuts.

Then you need to have a css to style the calendar that turns up, cause if you click off the home page, the calendar that replaces the content will not be styled at all, so what I did was to make css target only the .calendar class when it's in a certain div such as

#main .calendar

I'll have my site up in a few days, and I'll share then what I've worked out. I made tons of template changes to the calendar set so that it would appear to work the way you want, the way it SHOULD work.

Re: Calendar: Event in a different page/template?

Posted: Thu Feb 15, 2007 6:39 am
by RazorMedia
I agree with you that it´s nuts it doesn´t work this way already.

Thank you for the tip, i´ll try it!

Re: Calendar: Event in a different page/template?

Posted: Thu Feb 15, 2007 7:35 am
by RazorMedia
I worked out just fine - I just wanna kiss you!
Thanks a lot.

Re: Calendar: Event in a different page/template?

Posted: Thu Feb 15, 2007 9:32 pm
by carasmo
Okay. I'll use some virtual mouth wash!

Be sure to send me a karma thingy.

Re: Calendar: Event in a different page/template?

Posted: Sat Feb 17, 2007 7:22 pm
by Nullig
Can you please post your changes?

I would love to have it working that way, as well.

Nullig