Thank you Mario and RIchard.
I got this partially working. It produces a new tiddler from the
"new-here-with tags" tiddler when it is in view mode, but the toolbar
version is not picking up the tags, so it pops up with no tags when I try
to use it to pick up the tags of the currently focused tiddler. I would
almost always be using this while editing rather than viewing, so I tried
to hack together a frankenstein combo with my limited skills that looks
like this:
<$button tooltip={{$:/rr/ui/Buttons/new-here-with tags!!description}}
aria-label={{$:/rr/ui/Buttons/new-here-with tags!!caption}}
class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-new-tiddler" title="New+tags"
tags={{!!tags}} />+t
</$button>
<$action-sendmessage
$message="tm-edit-text-operation"
$param="wrap-selection"
prefix="''"
suffix="''"
/>
That successfully made it into the toolbar after I copied some of the the
fields from another toolbar entry, but instead of picking up the current
tiddlers tags, it grabbed the system tags from "new-here-with tags".
I tried replacing
tags={{!!tags}}
I tried replacing
tags={{!!tags}}
with
tags={{||!!tags}}
as per this help page on templating
<http://tiddlywiki.com/static/Transclusion%2520with%2520Templates.html>,
but that just removed all the tags.
ANy ideas what I'm doing wrong (probably a lot!)
RIch
On Monday, July 25, 2016 at 11:38:20 PM UTC-10, RichardWilliamSmith wrote:
>
> Hi Rich,
>
> If you combine Mario's suggestions, you can do this - clone and edit the
> new journal button, or otherwise create a tiddler with the same tag, call
> it $:/rs/ui/Buttons/new-here-with tags (if you change the title, you need
> to change the two references to it below - I always add my initials to the
> name of this kind of tiddler, to distinguish them from the core) give it
> the following text;
>
> <$button tooltip={{$:/rs/ui/Buttons/new-here-with tags!!description}}
> aria-label={{$:/rs/ui/Buttons/new-here-with tags!!caption}}
> class=<<tv-config-toolbar-class>>>
> <$action-sendmessage $message="tm-new-tiddler" title="New Tag Tiddler"
> tags={{!!tags}} />
> ''T''
> </$button>
>
> and the fields
>
> caption: ''T'' New Tiddler With Tags
> description: Create a new tiddler with the same tags as this one
>
> This will appear in the view toolbar and can be toggled from the control
> panel. If you want to put it in a particular place in the toolbar, give it
> a list-after or list-before field too.
>
> Regards,
> Richard
>
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e2109810-b066-47f7-8019-404df03481f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.