Hi PJO & PMario,
 

> ...unless perhaps you nest your link inside the button.
>

I extended the ticket...

*#2711 invoke actions when clicking external link*
https://github.com/Jermolene/TiddlyWiki5/issues/2711 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FJermolene%2FTiddlyWiki5%2Fissues%2F2711&sa=D&sntz=1&usg=AFQjCNGlPSB8MpR9MVUBVec9IqBmU5XP5g>


...as follows:

Another possible solution could be to extend the core ButtonWidget 
<http://tiddlywiki.com/#ButtonWidget> to allow the click event to propagate 
down to any [ext[<url>]] it contains. Currently, this appears to be 
prevented. At least, trying the below on tb5 <http://tobibeer.github.io/tb5> 
using 
the calc macro doesn't work:

\define link() [ext[$(url)$]]
\define logtid() $:/logs/$(url)$

<$vars url="http://google.com";>
<$tiddler tiddler=<<logtid>>>

<$button class="tc-btn-invisible">
<<link>>
<$list filter="[<logtid>has[text]]">
<$action-setfield $text=<<calc !!text +1>>/>
</$list>
<$list filter="[<logtid>!has[text]]">
<$action-setfield $text="1"/>
</$list>
</$button>

<$link><$view field="title"/></$link>
</$tiddler>
</$vars>

Best wishes,

Tobias.

-- 
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/d6713894-922e-46d2-b116-cd17e2336b5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to