I wanted to make the archive calendar created by the calendar plugin smaller so I wrote to Todd Larason, the author, and he said:
You have a couple options.
1. make flavour files for the calendar; if you just want to remove the day of week headers, then make empty files named calendar.month_sub_head.html, calendar.month_sub_day.html and calendar.month_sub_foot.html (replace the 'html' with your flavour name(s))
2. edit the plugin; if you have lots of flavours, this might be easier. near the bottom of the file, find the line that says "__DATA__". a fwe lines below that are lines that start "error month_sub_head", "error month_sub_day" and "error month_sub_foot"; just remove those lines.
3. don't remove the day headers, just shorten them; in the configuration section at the beginning, change @dowabbr = qw/Sun Mon Tue Wed Thu Fri Sat/ if ($#dowabbr != 6); to @dowabbr = qw/S M Tu W Th F S/ if ($#dowabbr != 6); or something similar
4. use CSS. In the CSS file, add a style like:
.month-calendar-day-head {display: none;}
so the headers are still there, they just don't get displayed.
I created a CSS file and linked it to the head portion of head flavour file but couldn't get it to recognize it. So, I opted to remark out the three related error lines in the plugin itself. I will write back to Todd and see if the style-sheet link needs to be elsewhere.
A technology professional's experiences with and observations about new technology products, new developments such as virtual environments, artificial intelligence, online gaming, entertainment and streaming services and software particularly image editing applications and Filemaker Pro.
Tuesday, September 23, 2003
Modified Calendar Plugin to Shrink the Calendar
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment