Timeline Dates

98 views
Skip to first unread message

Nickjf

unread,
Feb 6, 2008, 5:38:56 AM2/6/08
to TiddlyWiki
I've just started using TW, so apologies if this is a silly question.
What i want to know is whether I can change the Timeline date so that
it reflects the date something occurred rather than the date I added
it to TW. So can I post a story about man walks on the moon and get
the Timeline to show July 21, 1969. Thanks.

FND

unread,
Feb 6, 2008, 4:42:36 PM2/6/08
to Tiddl...@googlegroups.com
Welcome, Nick!

> I've just started using TW, so apologies if this is a silly question.

Don't worry - we're a friendly bunch here, and always glad to help!

> What i want to know is whether I can change the Timeline date so that
> it reflects the date something occurred rather than the date I added
> it to TW.

That would be possible - but it would involve either using a custom
extended field[1] or modifying the respective tiddlers' modified or
created date.

A ForEachTiddler[2] macro call in combination with tiddler slices[3]
might be a more favorable solution.

For example, you might have a tiddler like this:
|Date|1969-07-20|
Apollo Eagle lands on the lunar surface.
The corresponding ForEachTiddler macro call might look like this:
---------------
<<forEachTiddler
where 'tiddler.tags.contains("tmp")'
sortBy 'getDateSlice(tiddler)'
script 'function getDateSlice(t) {
return store.getTiddlerSlice(t.title, "Date");
}'
write '"|" + getDateSlice(tiddler) + "|"
+ "[[" + tiddler.title + "]]|\n"'
begin '"|!Date|!Tiddler|h\n"'
>>
---------------

HTH.


-- F.


[1] http://www.tiddlywiki.org/wiki/Tiddler_Fields
[2] http://tiddlywiki.abego-software.de/#ForEachTiddlerPlugin
[3] http://www.tiddlywiki.org/wiki/Tiddler_Slices

Nickjf

unread,
Feb 7, 2008, 12:20:47 PM2/7/08
to TiddlyWiki
That's very helpful. Thanks very much.

I have a couple of probs outstanding, and I hope I'm on the right
lines.

British-style date DD, MM, YYYY, is, I think, something to do with
TW configuration.

I'm a bit confused where to put this config , my best guess being in
the EachTiddlerPlugin?

The second thing is that it works really well (US-date style) in a new
menu .
So I reckon I can dispose of the TW default menu , or at least the
Timeline, by altering the style sheet?

Nice group and excellent contributions. Thanks again.

wolfgang

unread,
Feb 7, 2008, 3:00:53 PM2/7/08
to TiddlyWiki
Hi all,

> What i want to know is whether I can change the Timeline date so that
> it reflects the date something occurred rather than the date I added
> it to TW. So can I post a story about man walks on the moon and get
> the Timeline to show July 21, 1969. Thanks.

There is also a StickyDatePlugin which allows you to add a arbitrary
and permanent date to your tiddler.

http://paularodrigo.homeip.net/stickydate.html#StickyDatePlugin

> British-style date DD, MM, YYYY, is, I think, something to do with
> TW configuration.
>
> I'm a bit confused where to put this config , my best guess being in
> the EachTiddlerPlugin?

If you want to change the default date, find in the righthand
Sidebartabs under 'more' the 'ViewTemplate' tiddler, and change the
following line accordingly:

<span macro='view modified date [[DD mmm YY]]'></span>
(created: <span macro='view created date [[DD mmm YY]]'></span>)

Regards,

W.

FND

unread,
Feb 7, 2008, 4:04:06 PM2/7/08
to Tiddl...@googlegroups.com
> There is also a StickyDatePlugin which allows you to add a arbitrary
> and permanent date to your tiddler.

This might do the trick.
However, note that this will not create a new,separate tiddler field,
but rather override the existing last-modifed field.

> If you want to change the default date, find in the righthand
> Sidebartabs under 'more' the 'ViewTemplate' tiddler

For a list of available date formats, see the community wiki:
http://www.tiddlywiki.org/wiki/Timestamps
Some further options are explained here (towards the bottom):
http://www.tiddlywiki.org/wiki/Configuration_Options

HTH.


-- F.

Reply all
Reply to author
Forward
0 new messages