It works fine for the button but not for the tag-pill.

Anyway, hardcoding a concrete name is also not working:

\define actions() <$action-navigate $to="Target"/>
<$macrocall $name="tag-pill" tag={{!!source_type}} actions=<<actions>>/>

On Tuesday, 6 July 2021 at 23:14:57 UTC+2 Mat wrote:

> Just a guess but maybe this part
>
> {{!!source_type}}
>
> has lost its context (i.e the currentTiddler) and seeks for souce_type in 
> the tag(-tiddler)? I.e what is currentTiddler in the action? One way to 
> test is to add a source_type field in the tag-tiddler to see if it does 
> navigate to there.
> Again, just a guess.
>
> <:-)
>
>
> On Tuesday, July 6, 2021 at 6:04:25 PM UTC+2 [email protected] wrote:
>
>> I'm resurrecting this thread because it happens to me to be in the same 
>> situation: I want to make some tag-pill to execute some action.
>>
>> The action I want to run is navigation to a tiddler whose name is stored 
>> in a field. I know how to make it work with a button:
>>
>> \define actions() <$action-navigate $to={{!!source_type}}/>
>>
>> <$button actions=<<actions>>>Click me!</$button>
>>
>> But when I try to do the same with a tag-pill it doesn't do anything:
>>
>> <$macrocall $name="tag-pill" tag={{!!source_type}} actions=<<actions>>/>
>>
>> I've attached the JSON version of this to save you copy pasting time if 
>> you want to try and see yourselves.
>> I suspect actions works differently for tag-pill but there are no working 
>> examples in tiddlywiki.com.
>>
>> Any clue?
>>
>> On Friday, 8 January 2021 at 18:54:44 UTC+1 [email protected] wrote:
>>
>>> I see the documentation on the tag-pill macro is missing the examples. I 
>>> was wondering how the "actions" parameter would be filled out.
>>
>>

-- 
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/025750ad-525e-40cc-8da5-520722cf382fn%40googlegroups.com.

Reply via email to