I'm trying to set up a backup mechanism for individual tiddlers. I think 
the mechanism is fairly simple: clicking a button in the tiddler's toolbar 
will copy the tiddler and change the title, so it remains in the 
background. The idea is to access it later on through a tab in the info 
panel and to be capable of restoring it by clicking another button. 
However, my first attempts concerning the button creating a backup work 
only for text fields with no line breaks. I can't see why. Can anyone help 
me? Am I using the newtiddlerWidget incorrectly?

This is the code for the backup-button. To evitate stack overflow I 
specifically tag the tiddler containing the code:

\define myNewTitle()
$:/_backup/$(tiddlerTitle)$/$(todaysDate)$
\end

<$list filter="[is[current]!tag[$:/tags/noBackup]]">
<span title="Backup: Speichere in Verlauf">
<$set name="tiddlerTitle" value={{!!title}}>
<$set name="todaysDate" value=<<dateTime>> >
<$set name="verlauf" value={{!!title}}>
<$set name="text" value ={{!!text}} >
<$set name="datum" value =<<dateTime YYYY.0MM.0DD.0hh.0mm>> >
<$set name="caption" value=<<dateTime "DD MMM YYYY 0hh:0mm">> >
<$set name="tag" value="Verlauf">

<$newtiddler title=<<myNewTitle>> class="btn-invisible" skeleton=
"$:/_backup-skeleton">Verlauf</$newtiddler>

</$set>
</$set>
</$set>
</$set>
</$set>
</$set>
</$set>
</span>
</$list>



Thank you very much.

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to