Could I request a slight change to calendar plugin?

78 views
Skip to first unread message

Kashgarinn

unread,
Feb 16, 2008, 8:48:22 PM2/16/08
to TiddlyWiki
Hi there.

I'm a fan of Erics' work, and use the calendar plugin of his
mercilessly.

- I'm always experimenting with how I can grab info from daily
tiddlers and using them in monthly or weekly overviews, and I'd love a
slight change or option to calendarplugin.

I'd love if on either side of it there'd be a column with the
weeknumber, which would create a tiddler for the week, using the ISO
standard (so this week would be for instance : 2008-W07)

any chance this could be added to the plugin?

Regards,
K.

ocalTW

unread,
Feb 17, 2008, 12:43:16 AM2/17/08
to TiddlyWiki
Hello K.

You should have guessed that Eric had already thought about it!
If you are using the CalendarPlugin that is on his site (http://
www.TiddlyTools.com/#CalendarPlugin) open the CalendarPlugin tiddler
in your TW sheet, and look for the "Configuration" paragraph.You'll
find a "Display week numbers" check box. Just click on it and refresh/
reload (depending on your calendar usage).

You can even change the starting day for the week
(CalendarPluginConfig), and translation of the day and month if you
care to.

The standard text for the week number is "w" and the week number
concatenated (e.g. "w7").
If you want to change the text of it, look for the
"createCalendarDays" function in the code.
Perform changes at your own risks (see http://www.tiddlytools.com/#FAQ_ModifyingTiddlyToolsPlugins).

Also have a look at DatePlugin (http://www.TiddlyTools.com/
#DatePlugin). This may be useful to you.

-- ocalTW

Eric Shulman

unread,
Feb 17, 2008, 2:02:52 AM2/17/08
to TiddlyWiki
> You should have guessed that Eric had already thought about it!
> find a "Display week numbers" check box. Just click on it and refresh/
> The standard text for the week number is "w" and the week number
> concatenated (e.g. "w7").
> If you want to change the text of it, look for the
> "createCalendarDays" function in the code.
> Perform changes at your own risks (seehttp://www.tiddlytools.com/#FAQ_ModifyingTiddlyToolsPlugins).

Although CalendarPlugin already supports the optional *display* of
week numbers, those numbers were NOT being linked to corresponding
"weekly journal" tiddlers (which is what Kashgarinn has asked for).
To address this, I have updated the plugin so that week numbers are
now clickable links, and you can custom define the display format AND
link format for week numbers (see the "configuration" section of the
plugin):

<<option txtWeekNumberDisplayFormat>> (default: w0WW)
<<option txtWeekNumberLinkFormat>> (default: YYYY-w0WW)

Get the update (2008-02-16) here:
http://www.TiddlyTools.com/#CalendarPlugin

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
Reply all
Reply to author
Forward
0 new messages