Thanks Jed!
It's always you bringing great solutions for me! I'm already a big fan of
you :)
You know, that's the point where I usually get more trouble with TW...
Those ways to transclude data with {{!! {! << < $ $( and so on... Maybe I'm
mixing them up. The explanation seams plausible but then, when I think I
understood it... I face a new situation.
Now I want to exclude the tag from the sublist, but I didn't find the
solution. Look at the highlighted text. I tried many alternatives with no
success.
\define TagHistory()
<$set name="tagName" value={{!!title}}>
<ul>
<$list filter="[tag<tagName>!sort[title]]">
<$set name="tiddlerOfTag" value={{!!title}}>
<li>
<$link field="title"><$view field="title" /></$link> -
<$list
filter="[title<tiddlerOfTag>tags[]sort[title]]-[[Journal]]-<tagName>" >
<$link field="title"><$view field="title" /></$link>
</$list>
</li>
</$set>
</$list>
</ul>
</$set>
\end
If you know of any article that can give me a better understanting of this
kind of problem, please point that to me, and I'll study it deeply. :)
Thanks,
Eduardo
Em quinta-feira, 9 de julho de 2015 18:19:15 UTC-3, Jed Carty escreveu:
>
> Here you need to use <<tagName>> instead of $(tagName)$ like this:
>
> \define TagHistory()
>
> <$set name="tagName" value={{!!title}}>
>
> <<tagName>>
>
> <$list filter="[tag<tagName>tag[Journal]!sort[title]]" />
>
> </$set>
>
> \end
>
> Note that there are single < and > around tagName in the filter instead of
> [ and ].
>
> If you have something like this:
>
> <$set name=tagName value={{!!title}}>
> <<TagHistory>>
> </$set>
>
> then you could use $(tagName)$ inside the TagHistory macro.
>
> This explaination may be missing some details, but the general difference
> between <<tagName>> and $(tagName)$ is when you use <<tagName>> it treats
> it like a macro and inserts the wikitext which is then evaluated, if you
> use a set widget outside a macro and then use $(tagName)$ inside the macro
> than the wikitext that defines tagName is evaluated before being passed
> into the macro.
>
--
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/842ef5cf-db9d-42b5-82b8-72d1eb2c748d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.