I found the solution
It seems the $linkcatcher catch the link action so, if one needs to
navigate shall pass a message to $linkcatcher
The logic is a bit confusing
Example
- link and navigate to clicked title
- capture the title of clicked item and store in my tiddler given
through a variable
<$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>
Remarks
- a link to item is created (item holds a title is given through macro
input parameter
- a proper form of caption/title is shown using $view widget
- on click linkcatcher use the tm-navigate to navigate to tiddler its
title is given by item
- the title of clicked item is stored in a temporary tiddler
(tidSelectedItem holds the title of temporary tiddler)
--Mohammad
On Friday, February 21, 2020 at 10:33:58 AM UTC+3:30, 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?
>
>
> <$link to=<<currentTiddler>>><$text text=<<currentTiddler>>/></$link>
> <$linkcatcher actions="""<$action-setfield $tiddler=<<tidSelectedItem>>
> text=<<currentTiddler>> />""" />
>
>
> here the tidSelectedItem is a variable refers to my temporary tiddler to
> keep the title of clicked item
>
>
> Mohammad
>
--
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/14dfb543-ed57-466a-a5a7-0228a6d69f0a%40googlegroups.com.