A button to clone the current tiddler?

112 views
Skip to first unread message

hubertgk

unread,
Dec 10, 2017, 9:52:18 AM12/10/17
to TiddlyWiki
Hi All,

Is it possible to clone the current tiddler (including all its contents and, if possible, tags) upon a press of a button? I couldn't find anything relevant in the documentation.

What I'm trying to achieve: I have a list of tiddlers tagged 'template' and would like to embed this button within the list so that by clicking a button next to the chosen 'template' tiddler I could create a clone of that template for use.

Thanks in advance for suggestions!

Best,
Hubert

Eric Shulman

unread,
Dec 10, 2017, 10:42:37 AM12/10/17
to TiddlyWiki
On Sunday, December 10, 2017 at 6:52:18 AM UTC-8, hubertgk wrote:
Is it possible to clone the current tiddler (including all its contents and, if possible, tags) upon a press of a button? I couldn't find anything relevant in the documentation.
What I'm trying to achieve: I have a list of tiddlers tagged 'template' and would like to embed this button within the list so that by clicking a button next to the chosen 'template' tiddler I could create a clone of that template for use.


as per the documentation example:
<$button message="tm-new-tiddler" param="TaskTemplate">New Task</$button>

Thus, for your use-case:
<$list filter="[tag[template]]">
   <$link><$text text=<
<currentTiddler>>/></$link>
   <$button message="tm-new-tiddler" param=<
<currentTiddler>>>
      {{$:/core/images/clone-button}}
   </$button>
</$list>
 
enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals

Thomas Elmiger

unread,
Dec 10, 2017, 10:52:59 AM12/10/17
to TiddlyWiki
Hi Hubert,

You can activate the standard clone-button in a tiddler’s info panel (in the dropdown under the more-down-arrow).

Happy cloning!
Thomas

hubertgk

unread,
Dec 11, 2017, 4:47:29 AM12/11/17
to TiddlyWiki
Exactly what I needed. Thank you!
Reply all
Reply to author
Forward
0 new messages