Page 1 of 1

HUGE HELP! $day.url in calendar

Posted: Wed Feb 14, 2007 8:00 am
by carasmo
Hello,

Right now I'm trying to get all the content in place, so I haven't uploaded the template for the site, but I did manage to get the calendar the way I wanted it.

I made a mini calendar for the site. The problem is when the person clicks on the "day" (since summaries are set to 0), the day's events replaces the content on the page, whatever page you happen to be on, and then it horribly mangles the calendar css and doesn't allow you out of that page easily. You're on the home page but all the home page content is gone. I want it so that when a person clicks on a day it goes to specific page.

Where is the template for the day's events? I want to be able to at least format that page.

Here's a link of what I mean, if you click on a date with an event while you're on the home page, then you get this unformated calendar table:

http://www.dropsoul.com/testCMSMS/index ... 15&page=15

And is there a way to get search engin friendly urls for the calendar? Those are really, really long.
Thank you!

Re: HUGE HELP! $day.url in calendar

Posted: Sat Feb 24, 2007 12:54 am
by heatherfeuer
I have two versions of a calendar.  I have a large calendar display on it's own page in the menu.  For that, I use the module call:

Code: Select all

{cms_module module='Calendar' table_id='big' first_day_of_week='0' detailpage='event_detail'}
"event-detail" is the page alias of a page I created that doesn't get displayed in the menu structure, but is active and only utilized to display the details of the event link clicked on.  The detail page has a module call:

Code: Select all

{cms_module module='Calendar' display='list' table_id='cal-event' detail='1'}
When a user clicks on an event link, it opens a page with the event details shown.  I also have a small version of the calendar in the sidebar.  For that one, I set the css style for class .calendar-event to display: none; but the date number is highlighted as having an event scheduled.  Since I have the detailpage parameter set on the big calendar, clicking on the date number in the small calendar in the sidebar acts the same to open the detail page.

If you don't have a big version of your calendar, just include the detailpage parameter to the module call.  The only part of it all that isn't working for me at the moment is that I can't get the detail page to accept the css for id "cal-event!"