Many thanks Eric. This is a great solution. In my opinion, the $button here is more clear and semantic and for me is quite understandable. The issue I have is I cannot drag the link like what I see in Open or Recent tab in the sidebar and I need to have that feature.
What do you think? Best wishes Mohammad On Fri, Feb 21, 2020 at 11:42 AM Eric Shulman <elsdes...@gmail.com> wrote: > On Thursday, February 20, 2020 at 11:03:58 PM UTC-8, Mohammad wrote: >> >> I am using $link to create some links using $list widget! >> I want to save the title of clicked item in a temporary tiddler for >> further processing. We know the $link widget does not supports actions >> How can I do this? >> > > How about using a $button instead of the $link widget? Something like > this: > > \define showlink(item) > <$tiddler tiddler=<<__item__>>> > <$button class="tc-btn-invisible"> > <$view field="caption"><$view field="title"/></$view> > <$action-setfield $tiddler=<<tidSelectedItem>> text=<<currentTiddler > >> /> > <$action-navigate /> > </$button> > </$tiddler> > \end > > Note: I used the <$tiddler> widget to set the <<currentTiddler>> to the > <<__item__>>. This is just so the $view and $action-navigate widgets can > use their default parameters for $tiddler and $to > > -e > > -- > 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 tiddlywiki+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/9b73736b-9c22-41a3-91f7-da84cad6556a%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/9b73736b-9c22-41a3-91f7-da84cad6556a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDz-yHHAyko9vB9LWAR6e4RVXq6O%2B8cdq0QZseyVe_afA%40mail.gmail.com.