Page 3 of 3
Calendar 0.2! (was 0.1)
Posted: Mon Feb 21, 2005 11:57 am
by esmann
Try settings summaries='true'. The table_id is solely so you can write CSS rules that apply to that one particular calendar.
Nothing happens. Still the small calendar.
If I make a event, the event discription is shown in the middle of the small calendar and messes the calendar view totally up.
Calendar 0.2! (was 0.1)
Posted: Mon Feb 21, 2005 12:01 pm
by Akrabat
The style rules for my testbed page are:
Code: Select all
/* 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 */
#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 **/
/* 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;
}
[/code]
Calendar 0.2! (was 0.1)
Posted: Mon Feb 21, 2005 2:02 pm
by Greg
Another variation just for the Calendar: (Hope you like green

)
Code: Select all
#big {
width: 98%;
border: 4px double #161;
margin: auto
}
#big .calendar-prev {
font-size: 1.6em;
}
#big .calendar-month {
font-weight: bold;
}
#big .calendar-next {
font-size: 1.6em;
}
#big .calendar-day {
width:14%;
border: 1px solid #ddd;
margin:0;
padding: 4px;
background-color: #efe;
}
#big th {
border-bottom: 2px double #999;
color: #393;
}
#big tr {
vertical-align: top;
}
#big ul {
margin: 1px;
padding: 0;
list-style: none
}
#big a, #big a:visited {
font-size: .8em;
color: blue;
}
Calendar 0.2! (was 0.1)
Posted: Mon Feb 21, 2005 3:07 pm
by Ted
I need to modify the rewrite rules to allow for parameters after an .shtml. In theory, it should be possible, but it's going to make me a little bit to figure it all out.
Calendar 0.2! (was 0.1)
Posted: Mon Feb 21, 2005 3:36 pm
by Akrabat
Patricia wrote:what should I remove in the code in order than when we reach the page again, it resets to current month?
Will stick a new param in this evening.
Edit: In SVN now. New parameter: use_session (true/false).
Calendar 0.2! (was 0.1)
Posted: Mon Feb 21, 2005 8:42 pm
by esmann
Big thanks to Akrabat and Greg.
Now my calendarworks pretty fine

Calendar 0.2! (was 0.1)
Posted: Mon Feb 21, 2005 9:12 pm
by esmann
UPS!
I'm so sorry. The only thing I did was complaining about things that I could not get to work.
I totally forgot to tell that the calendar module is a great piece of work and very usefull.
Thanks to Akrabat for the fine module and all the help
_______________
- Jimmy
Calendar 0.2! (was 0.1)
Posted: Mon Feb 21, 2005 9:28 pm
by Akrabat
esmann wrote:I'm so sorry. The only thing I did was complaining about things that I could not get to work.
*laugh*
Without feedback, I can't improve it. Bugs were expected
I'm glad you like the module though!
Calendar 0.2! (was 0.1)
Posted: Mon Feb 21, 2005 10:23 pm
by Greg
Small bug. If I use table_id="green" parameter with display="list" or display="upcominglist" I get two divs with an id of green
Code: Select all
<div id='green'><h1>01/Feb/2005</h1>
<div class='calendar-event' id='green'>
Request: on the Manage Events Screen, I like the way the categories are separated in the bookmarks module. Could this be done for the calendar module as well?
Calendar 0.2! (was 0.1)
Posted: Tue Feb 22, 2005 9:19 am
by pinthenet
There are a couple of things from Patricia's Events module that would be useful in the Calendar module, especially the idea of From and To dates. I need to maintain events that cover 2 or 3 days - being able to define a To is very useful.
The events module seems to offer some more options for display (eg include Category), which I've not found in Calendar yet.
One odd thing in Calendar (perhaps I'm doing something wrong) - I set up 4 items with dates in March, April & May 2005. I can't work out what the sort order is - sometimes the April event is shown last..
Finally

I am working on a site that is in German. I see where I can change field names such as Date: etc in the module, but that's not very upgrade-friendly - are there alternatives (foreseen).
That's really all for now
Thanks
John
Input fileds for date and time
Posted: Tue Feb 22, 2005 12:32 pm
by 100rk
Calendar 0.2! (was 0.1)
Posted: Tue Feb 22, 2005 12:47 pm
by Akrabat
I will see what I can do over the next few days for the feature requests.
We don't have a module language translation system in place yet, but maybe I can make it easier for calendar as there are so few words hard coded in the output. Incidentally, does it correctly get the month names in your language as that's supposed to happen based on the locale of the websever.
Calendar 0.2! (was 0.1)
Posted: Tue Feb 22, 2005 1:09 pm
by pinthenet
Aha, that answers another question. As I'm working with English settings I can't say yet. I'll try at home with a German setup.
One thing I didn't mention before - I'm mainly interested in the 'upcominglist' display format at present - there aren't so many events over the year so that way I can show everything on one page.
As an exercise in learning PHP I've hacked in a few changes to get the desired effect(s) - eg date_to field in the table, To date shown if not the same as the start date, but I don't really want to go much further in that direction.
Rgds
John
Calendar 0.2! (was 0.1)
Posted: Wed Feb 23, 2005 9:14 pm
by Akrabat
pinthenet wrote:One odd thing in Calendar (perhaps I'm doing something wrong) - I set up 4 items with dates in March, April & May 2005. I can't work out what the sort order is - sometimes the April event is shown last..
I can't reproduce this one. Can you give me the list of dates of the events you are using and also the cms_module line you are using?