How do I make a calendar entry for 'today' my default tiddler?

89 views
Skip to first unread message

BarryS

unread,
Oct 16, 2008, 5:16:13 AM10/16/08
to TiddlyWiki
I use the CalendarPlugin and DatePlugin in my TW.
I have added <<calendar thismonth>> to my MainMenu, and I am trying to
use this as a diary/organiser.
If I select a particular date from the calendar, it creates a tiddler
with today's date as the title in the format DD MMM YYYY (e.g. 16
October 2008).
I can then add appointments / todo lists to this tiddler.
What I want to do is make today's tiddler the default tiddler, so that
when I open my TW todays diary entry immediately appears.
I have tried amending the DefaultTiddlers shadow tiddler so that it
contains
<<date link today "YYYY.MM.DD" "DD MMM YYYY">>

But the tiddler relating to today's calendar entry does not open
automatically.
If I open the DefaultTiddlers shadow tiddler, and select the entry in
the body, it does open the correct tiddler.

Any ideas how to do this automatically?

Many thanks in advance
Barry

BarryS

unread,
Oct 17, 2008, 6:53:33 AM10/17/08
to TiddlyWiki
Bump

FND

unread,
Oct 17, 2008, 7:12:26 AM10/17/08
to Tiddl...@googlegroups.com
> What I want to do is make today's tiddler the default tiddler

While I'm pretty sure this has been discussed a few times already - here
are two (randomly chosen) candidates from the archives:
http://groups.google.com/group/TiddlyWiki/t/27be735e73816efb
http://groups.google.com/group/TiddlyWiki/t/991885b303b11360

It'd be great if you could add the solution(s) to the community wiki[1].

> Bump

We generally don't mind bumping a thread, but give us a few days please.
Also, the title and description were a bit verbose, even misleading, as
the CalendarPlugin and DatePlugin aren't really related to this issue -
though I admit that this might not have been immediately obvious to you.
(Please take this as *constructive* criticism; experience shows that
concise descriptions[2] greatly enhance the chances of getting a response.)


-- F.


[1] http://www.tiddlywiki.org
[2] http://www.tiddlywiki.org/wiki/Troubleshooting

BarryS

unread,
Oct 17, 2008, 7:54:56 AM10/17/08
to TiddlyWiki
Thanks for the reply FND, I shall look into those links.
Please accept my apologies for 'bumping' so soon.

Regards
Barry

BarryS

unread,
Oct 17, 2008, 11:30:07 AM10/17/08
to TiddlyWiki
Hi FND,

I tried Eric's recommendation in the second thread:
Created a tiddler called DefaultTiddlersTweak with a tag of
systemConfig.
Added the line of javacode 'config.shadowTiddlers.DefaultTiddlers=new
Date().formatString("0DD-MMM-
YYYY"); '
Then removed the contents of my existing DefaultTiddlers shadow
tiddler.

However, when I start my TW, no default tiddlers appear.

Am I missing something here?
(BTW should I have imported any plugins to make the javascript, that
Eric mentions, work?

Regards
Barry

Eric Shulman

unread,
Oct 17, 2008, 11:49:30 AM10/17/08
to TiddlyWiki
> Then removed the contents of my existing DefaultTiddlers shadow
> tiddler.

Delete the [[DefaultTiddlers]] *tiddler*, not just its content. As
long as a real tiddler called [[DefaultTiddlers]] exists, the shadow
content (which has been tweaked) will not be applied.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

BarryS

unread,
Oct 17, 2008, 11:57:28 AM10/17/08
to TiddlyWiki
Hi Eric,

Thanks for replying.
This may sound really strange, but how do I delete the DefaultTiddlers
shadow tiddler?
I have selected it from More>Shadowed.
Then I editted it and selected 'Delete', but it won't go away, even
after saving my changes, and re-starting my TW.
When I re-open my TW and look in the list of shadowed tiddlers - there
it is!

Regards
Barry

Eric Shulman

unread,
Oct 17, 2008, 12:11:08 PM10/17/08
to TiddlyWiki
> This may sound really strange, but how do I delete the DefaultTiddlers
> shadow tiddler?
> I have selected it from More>Shadowed.
> Then I editted it and selected 'Delete', but it won't go away, even
> after saving my changes, and re-starting my TW.
> When I re-open my TW and look in the list of shadowed tiddlers - there
> it is!

Shadow tiddlers are *built-in* to the TW core. They can't be
deleted. But they *can* be overridden by creating a *real* tiddler
with the same name. If you subsequently delete that real tiddler,
then the shadow definition re-emerges and is applied. In this
particular use-case, the one-line of javascript code in
[[DefaultTiddlersTweak]]:
config.shadowTiddlers.DefaultTiddlers=new
Date().formatString("[[0DD-MMM-YYYY]]");
simply sets the content of the shadow definition, so that instead of
the hard-coded value ("GettingStarted"), it contains the current date.

Note: the date output above should to be enclosed in double-square
brackets so that it is an *explicit* TiddlyLink.... this is a small
change from the code I had previously posted, but might account for
the lack of success you are having.

BarryS

unread,
Oct 20, 2008, 5:40:11 AM10/20/08
to TiddlyWiki
Hi Eric,

Thanks for all your patience on this one, but I still can't get it
working.
I have:
- Copied and pasted your code into a real tiddler, called
DefaultTiddlersTweak.
- Given this new tiddler a tag of systemConfig.
- Editted the tiddler called DefaultTiddlers, found in the 'All' tab,
and deleted it (I guess this is the one you wanted me to delete).
- Saved my TW, then closed it and re-opened it.
However no default tiddler is displayed.

It must be something I am (or am not) doing, but I don't know what
that is.
Is there a particular plugin that I should have, that maybe I am
missing?
BTW I am running TW v2.4.1

Regards
Barry

BarryS

unread,
Oct 23, 2008, 8:43:46 AM10/23/08
to TiddlyWiki
Hi,

Can anyone see what I am doing wrong here?
I still do not see a default tiddler, containing my calendar entries
for today, when I open my TW.

Regards
Barry

wolfgang

unread,
Oct 25, 2008, 8:37:34 AM10/25/08
to TiddlyWiki
Hi Barry,

though I don't use Calendar and DatePlugin and therefore don't know
their specifics in this case:

> But the tiddler relating to today's calendar entry does not open
> automatically.
> If I open the DefaultTiddlers shadow tiddler, and select the entry in
> the body, it does open the correct tiddler.

But there is also the little OpenToday plugin by Bradley Meck which
might help you in this case:

http://bradleymeck.tiddlyspot.com/#OpenToday

Regards,

W.

BarryS

unread,
Oct 29, 2008, 8:51:12 AM10/29/08
to TiddlyWiki
Thanks for the reply Wolfgang.
I will test the plugin and see how I get on.

Regards
Barry
Reply all
Reply to author
Forward
0 new messages