<$link to=<<currentTiddler>>><$text text=<<currentTiddler>>/></$link>
<$linkcatcher actions="""<$action-setfield $tiddler=<<tidSelectedItem>> text=<<currentTiddler>> />""" />
<$linkcatcher set=<<tidSelectedItem>> setTo=<<__item__>> message="tm-navigate">
<$link to=<<__item__>> overrideClass=<<openItemClass>> >
<$view tiddler=<<__item__>> field="caption">
<$view tiddler=<<__item__>> field="title"></$view>
</$view>
</$link>
</$linkcatcher>
Tony
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 actionsHow can I do 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
Thanks for sharing the result Mohammad. I wanted to work on this as well.
Tony
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e94832e3-8dcf-42df-be1d-88aab8b82179%40googlegroups.com.
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 tabs in the sidebar and I need to have that feature.
<$button class="tc-btn-invisible" dragTiddler=<<currentTiddler>>>