Changing the name of a Tiddler in TiddlyWiki and retain the references pointing to it

tiddlywikiwiki

I am new to TiddlyWiki and I am trying to make a webpage that I anticipate to edit later with some information changing. It would make sense to sometimes edit the name of some of the tiddlers, but if I do that I will lose the links pointing to it.

Is it possible to change the name of a tiddler and make all references pointing to it accordingly at the same time (without doing it manually)?

Best Answer

I recently encountered the same problem, here is how I solved it:

1) Create a new-tiddler-button that creates each tiddler with a unique ID.

For creating a custom new-tiddler-button see for example Stephan Hradek's example on http://tiddlystuff.tiddlyspot.com/.

You can create a javascript macro that returns a unique id and uses this unique id as field value

2) Referencing From now on, reference tiddlers via

{{{ [field:id[ <yourID> ]!has[draft.of]] }}}

or <$list filter=[field:id[ <yourID> ]!has[draft.of]] />