Page 1 of 2
Changing Calendar to show Grid all the time
Posted: Mon Dec 01, 2008 10:00 pm
by bouschie
Hi,
I would like to create a calendar that looks something like this:
http://campaign-demo.com/cms/index.php?page=calendar
I am running CMS 1.4.1 and the Calendar 0.8.2 module. Any help you could give me would be great.
Re: Changing Calendar to show Grid all the time
Posted: Wed Dec 03, 2008 7:14 pm
by jans
I guess we are barking at an abandoned tree here, there are lots of problems with calendar but I guess the dev is drowning himself in whiskey because of the many questions about his new version.
This rid was one of the questions I asked him before bu got no answer as what soever (I called it calendar template)
I guess there is nothing else to do then wait for a next version and hope he soreted out his sh..yt
Re: Changing Calendar to show Grid all the time
Posted: Wed Dec 03, 2008 7:18 pm
by RonnyK
What is the exact issue you are addressing. By default the calendar has such a look, only when selecting one event, you dive into its details and the grid isnt showing anymore?
Ronny
Re: Changing Calendar to show Grid all the time
Posted: Wed Dec 03, 2008 7:42 pm
by jans
Without wanting to break into someones thread I'd like to say that after upgrading to version 1.0 my layout of calendar is shot to h*ll and I see only a small text version (not I have shortened the day text by hand )
see it at;
http://www.jsnijder.nl/index.php?page=kalender
I just want the layout as in the before given link back please (also in the left side menu I had a nice grid calndar but it's also gone now), see at;
http://www.jsnijder.nl/ (bottom left)
Please help us

Re: Changing Calendar to show Grid all the time
Posted: Wed Dec 03, 2008 7:51 pm
by RonnyK
And you do have stylesheet "Calendar CSS example v0.9" attached to your template?
Ronny
Re: Changing Calendar to show Grid all the time
Posted: Wed Dec 03, 2008 8:10 pm
by jans

?? how do I do that and where an I see that ?
could it be that with the update the template / stylesheet is overwritten ?
Re: Changing Calendar to show Grid all the time
Posted: Wed Dec 03, 2008 8:12 pm
by RonnyK
Under Layout -> Templates, and then the CSS-button on the right of your template used.... Check if the stylesheet is attached, and otherwise attach it, using the selection-box on the bottom of all attached stylesheets.
Ronny
Re: Changing Calendar to show Grid all the time
Posted: Wed Dec 03, 2008 8:21 pm
by jans
It is attached but still it's the sam ugly cal.
I could give you temp admin access for you to see if you need to check some, please let me know on my mail adrress
Re: Changing Calendar to show Grid all the time
Posted: Wed Dec 03, 2008 8:57 pm
by jans
Aaaach what the heck, here's my template
/* make all links red */
.calendar tr td a
{
color: red;
}
/* highlight "today" for the small calendar */
.calendar-today
{
font-weight: bold;
}
/* display the "upcominglist" as one line per entry (assuming table_id='cal-upcominglist') */
#cal-upcominglist .calendar-date-title
,#cal-upcominglist .calendar-summary-title
{
display: none;
}
#cal-upcominglist h2
,#cal-upcominglist .calendar-date
,#cal-upcominglist .calendar-summary
{
display: inline;
margin-right: 5px;
}
/* tidy up text sizes for lists */
#cal-list h1, #cal-upcominglist h1
{
color: red;
font-size: 120%;
}
#cal-list h2, cal-upcominglist h2
{
font-size: 110%;
}
/** large calendar rules (assuming table_id='big') **/
/* border on for #big */
#big{
margin: 0px;
border-collapse: collapse;
border: 1px solid black;
}
/* nice squares for the #big table */
#big th
{
border: 1px solid black;
padding: 3px;
width: 75px;
}
#big td {
border: 1px solid black;
vertical-align: top;
padding: 3px;
height: 75px;
width: 75px;
}
/* format summaries nicely in #big */
#big ul
{
margin: 0px;
padding: 0px;
padding-left: 5px;
}
#big li
{
list-style-type: none;
padding: 0px;
margin: 0px;
}
/* background colours for #big */
#big td
{
background-color: silver;
}
#big .calendar-day
{
background-color: #80ff80;
}
#big .calendar-today
{
font-weight: normal;
background-color: #8080ff;
}
.calendar-event .calendar-date-title,
.calendar-event .calendar-summary-title,
.calendar-event .calendar-details-title
{
display: none;
}
Re: Changing Calendar to show Grid all the time
Posted: Thu Dec 04, 2008 5:11 am
by Nullig
@Digitalchef
The table_id parameter (and I suppose, the old Calendar stylesheet) doesn't apply to Calendar v 1.0, only the older versions. Calendar 1.0 is a completely new Module, based on the old one, but not compatible.
Nullig
Re: Changing Calendar to show Grid all the time
Posted: Thu Dec 04, 2008 7:13 pm
by jans
I use the stylesheet as posted, with the right tag table_id='big'
The stylesheet for the version 1.0 is exactly the same as posted (and so is old one) one the new version just uses other tag names, no more no less so it should work.
I guess there is a serious problem with calendar, and seen as the developer does not react to the peoples problems I think he knows it too but can't find the answer.
Reverting back to an older version does not solve the problem simply because teh complete dB is emptied by the upgrade and so all settings where erased too I guess.
Re: Changing Calendar to show Grid all the time
Posted: Thu Dec 04, 2008 7:21 pm
by RonnyK
I have got Calendar (for testing) running here. And it shows as expected.
http://ronnyk.dyndns.org/cmsms1svn/inde ... e=calendar
Ronny
Re: Changing Calendar to show Grid all the time
Posted: Thu Dec 04, 2008 7:24 pm
by jans
Ronny would you be so nice and take a look at my cmsms then I can mail you an admin id, whatever I trie it WILL not work at all, and on top of that after upgrading I can't add an item and get error's
PLease ?
Re: Changing Calendar to show Grid all the time
Posted: Thu Dec 04, 2008 7:38 pm
by jans
Looks like it's solved, I hand copied the css to the used css in cmsms and reloaded, now t does work, strange because it is the same as I did before and at that time it did not work.
Okay now the template seems to work I'd like to try and get the calendar add an item to work who can and is willing to help me with that ?
Re: Changing Calendar to show Grid all the time
Posted: Thu Dec 04, 2008 7:42 pm
by jans
Ooops, not quite, please take a look at this link;
http://www.jsnijder.nl/
How can I change the calendars vertical an horizontal size in the menu bar ?