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

<$button message=“tm-copy-to-clipboard” param=<>>
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.

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)

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.

Oups sorry theok was faster than me ahah

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 : TW-tips — useful information collected from the tiddlywiki community

Done, two tiddlers needed one for logic one for button image. Thanks.

AddButtonTOViewBar.json (862 Bytes)

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 (4.11 KB)