Bimlas,
Nice simple method. I considered this at one point and did not proceeded
with it for a few reasons that I recall.
- I did not know how to guarantee uniqueness, especially for imported
tiddlers
- Cloning tiddlers can defeat this with duplicates
- I noticed many system tiddlers are "created" field free.
I did actually intervene and on given tiddlers tested the created date was
unique, and if not incremented only the milliseconds to make it unique.
- You can test for uniqueness on tiddlers that need this serial number,
and I copied it to the TSN tiddler Serial Number field so I knew this test
had being done.
- I decided if this were to be a potentially global serial number it
would consume less space to start from 1 rather than in your example
20,131,129,090,249,275
- I even considered converting the generated serial number to a base 62
number system - 26 lower case, 26 upper case and 10 numeric to make the
serial number even shorter
- Although I maintained next SN in decimal.
Regardless of how one sets the serial number a small set of tools would
help, such as editor toolbar to select a link to a tiddler that uses the
serial number.
Regards
Tony
On Monday, May 25, 2020 at 5:14:53 PM UTC+10, bimlas wrote:
>
> Ok, it works, I just forgot to change "caption" to "title":
>
> \define dtid-link(created) <$link to={{{ [created<__created__>] }}}><$view
> tiddler={{{ [created<__created__>] }}} field="title"/></$link>
>
> This <<dtid-link "20131129090249275">> link is created based on `created`
> field. Try to rename the target tiddler!
>
> Try it on TW.com!
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/b610785b-96d5-4660-81d2-b8e05b8cbb00%40googlegroups.com.