Good evening Odin,
Based on your earlier message and my limited knowledge, this is what I did,
feel free to use it:
created: 20210103032740086
creator: jhl
list-before: $:/core/ui/Buttons/edit
modified: 20210103051251570
modifier: jhl
tags: $:/tags/ViewToolbar
title: $:/plugins/Odin/Recipe/EditButton
\whitespace trim
<$list filter="[all[current]tag[Recipe]]">
<$button tooltip={{$:/language/Buttons/Edit/Hint}}
aria-label={{$:/language/Buttons/Edit/Caption}}
class=<<tv-config-toolbar-class>> >
<$action-setfield $tiddler="$:/plugins/Odin/Recipe/Selection"
text={{!!title}}/>
<$action-navigate $to="$:/plugins/Odin/Recipe/RecipeEdit"/>
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$:/core/images/edit-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>match[yes]]">
<span class="tc-btn-text">
<$text text=" "/>
<$text text={{$:/language/Buttons/Edit/Caption}}/>
</span>
</$list>
</$button>
</$list>
I also had to wrap the standard $:/core/ui/Buttons/edit with
<$list filter="[all[current]!tag[Recipe]]">
</$list>
I think there must be a way to hide the standard edit button for Recipe
tags without editing the core, but I don't know how.
On Saturday, January 2, 2021 at 7:11:54 AM UTC-8 Odin wrote:
> Hi Jonathan,
> ...
> However, it is possible to add a button that when pressed navigates to the
> recipe editor plugin and sets the selection tiddler to the recipe. Here's
> how I did it:
>
> <$list filter="[all[current]tag[Recipe]]">
> <$button>
> <$action-setfield $tiddler="$:/plugins/Odin/Recipe/Selection"
> text={{!!title}}/>
> <$action-navigate $to="$:/plugins/Odin/Recipe/RecipeEdit"/>
>
> Open this recipe in the Recipe Editor
> </$button>
> </$list>
> ...
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/d14ca656-b5c4-4909-ba67-8870cf41196en%40googlegroups.com.