Hi iNSiPiD
I just checked out your calendar and I like the look of it. I am having trouble getting the tables to show big, all I get is a little calendar. I have the following tag - {cms_module module="Calendar" table_id="big"} but still doesn't show big. I am doing something wrong?
BTW, your calendar gives an error when you try to change the month forward or backwards.
Thanks for your help!
Calendar 0.7 alpha problems
Re: Calendar 0.7 alpha problems
The reason why my month links were broken is because I use mod_rewrite for cleaner URLs. It's since been fixed. Thanks for the heads-up.
For your site you need to do two things:
1. Read the Help for Calendar and it tells you how to set your own ID for the table layout. If you want to use BIG then you have to set the table ID as big. See the file calendar_example.php in the Calendar folder.
2. You can also write your own CSS and define all the class names as they appear in the templates in the admin tabs.
e.g.
/* Calendar Styles */
#calendar {
display: table;
padding: 0; margin: 0;
border: 1px solid #ddd;
width: 100%;
font-size: 0.7em;
text-align: center;
}
#calendar th {
color: #fff;
background: #005CAB;
}
#calendar th, #calendar td {
border: 1px solid #005CAB;
padding: 0px; margin: 0;
text-align: center;
width: 80px;
}
#calendar td { padding: 2px; height: 60px; text-align: left; vertical-align: top; }
#calendar caption { text-align: center; font-size: 200% }
#calendar ul {
padding: 0;
margin-left: 5px;
margin-top: 5px;
}
#calendar li {
list-style: none;
}
#calendar li a {
}
.calendar-today { background: #DDE4FF; font-weight: bold; }
.calendar-month {}
.calendar-prev a {}
.calendar-next {}
For your site you need to do two things:
1. Read the Help for Calendar and it tells you how to set your own ID for the table layout. If you want to use BIG then you have to set the table ID as big. See the file calendar_example.php in the Calendar folder.
2. You can also write your own CSS and define all the class names as they appear in the templates in the admin tabs.
e.g.
/* Calendar Styles */
#calendar {
display: table;
padding: 0; margin: 0;
border: 1px solid #ddd;
width: 100%;
font-size: 0.7em;
text-align: center;
}
#calendar th {
color: #fff;
background: #005CAB;
}
#calendar th, #calendar td {
border: 1px solid #005CAB;
padding: 0px; margin: 0;
text-align: center;
width: 80px;
}
#calendar td { padding: 2px; height: 60px; text-align: left; vertical-align: top; }
#calendar caption { text-align: center; font-size: 200% }
#calendar ul {
padding: 0;
margin-left: 5px;
margin-top: 5px;
}
#calendar li {
list-style: none;
}
#calendar li a {
}
.calendar-today { background: #DDE4FF; font-weight: bold; }
.calendar-month {}
.calendar-prev a {}
.calendar-next {}
Last edited by iNSiPiD on Fri Jan 13, 2006 5:03 am, edited 1 time in total.