On Monday, August 17, 2020 at 5:58:45 PM UTC-7, kebi wrote:
>
> I'm using a plugin that creates a field named "parent" that contains the
> title of another tiddler.
> If I use <$view name={{!!parent}} /> I get the text of the tiddler
> contained in "parent".
> The problem is that I need to use the result of <$view name={{!!parent}}
> /> inside a macrocall, how can I do it??
> the macrocall looks like this:
> <$macrocall $name="remembercz" id=<<currentTiddler>>
> text=""
> reference="TEXT OF PARENT HERE"/>
>
First... the parameter for the <$view> widget is "tiddler" not "name"....
thus:
<$view tiddler={{!!parent}}/>
I assume that was just a mistake when you posted your message, and not in
your code.
Now... for the question you asked...
To get the text from a tiddler whose title is specified by the "parent"
field in the current tiddler, you can use an "inline filter", like this:
{{{ [{!!parent}get[text]] }}}
So your macro call would look like this:
<$macrocall $name="remembercz" id=<<currentTiddler>> text="" reference={{{
[{!!parent}get[text]] }}}/>
enjoy,
-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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/f5d47e8c-cc0a-49e1-8931-748769ff605co%40googlegroups.com.