how to add a button to the top right of the tiddler to copy the title ?

118 views
Skip to first unread message

imleg...@gmail.com

unread,
Sep 18, 2021, 9:42:35 AM9/18/21
to TiddlyWiki
<$button message="tm-copy-to-clipboard" param=<<currentTiddler>>>
Copy date to clipboard
</$button>

I know the command is something like this, but I don't know how to add a button to the top right beside the edit clone tiddler. 

Charlie Veniot

unread,
Sep 18, 2021, 10:55:49 AM9/18/21
to TiddlyWiki
To study and copy for the creation of your own button:

$:/core/ui/Buttons/edit (you need to at least have a tiddler like this for your button)
$:/core/images/edit-button (nice to have one like this, even if your image is just an emoji or whatever)
$:/language/Buttons/Edit/Caption  (maybe nice to have one like this)
$:/language/Buttons/Edit/Hint  (maybe nice to have one like this)

Paul Hampshire

unread,
Sep 18, 2021, 8:46:34 PM9/18/21
to TiddlyWiki
I think you're looking for this.     https://tiddlywiki.com/#SystemTag%3A%20%24%3A%2Ftags%2FViewToolbar

If you do a search for that tag you'll also be able how the others are put together.

Télumire

unread,
Sep 18, 2021, 8:49:54 PM9/18/21
to TiddlyWiki
You also need to add the tag $:/tags/ViewToolbar if you want your button to be displayed in the view toolbar (which is at the right of the tiddler title).

If you want your button to be really in the title itself and not in the toolbar, then you can use the field icon, which display the content of the tiddler in the title, then with css move the icon to the right, e.g : https://telumire.github.io/TW-tips/index.html#tasker%20button%20at%20the%20right%20of%20the%20title

Télumire

unread,
Sep 18, 2021, 8:50:56 PM9/18/21
to TiddlyWiki
Oups sorry theok was faster than me ahah

imleg...@gmail.com

unread,
Sep 19, 2021, 1:31:57 AM9/19/21
to TiddlyWiki
Done, two tiddlers needed one for logic one for button image. Thanks. 
AddButtonTOViewBar.json

TW Tones

unread,
Sep 24, 2021, 7:47:17 PM9/24/21
to TiddlyWiki
I know I am late to the GG party, spending more time in Discourse now,

Try my attached json on tiddlywiki.com. It contains;
  • A button to copy the current title
  • A button to copy the current tiddler text
  • A neat little trick to link to the last tiddler and or copy buttons from the sidebar
The buttons are effective in the control panel appearance toolbars, uncheck to hide behind more.

If needed I can also find buttons I made to copy the "current tiddler" in the following forms;
  • [[current tiddler]]
  • {{current tiddler}}
Regards
Tones
copy-text-title-buttons.json
Reply all
Reply to author
Forward
0 new messages