On Wednesday, July 1, 2020 at 3:29:51 AM UTC-7, Jake wrote:
>
> <$set name="category-var"
> filter="[<currentTiddler>category[category1]then[category1-icon]]
> ~[<currentTiddler>category[category2]then[category2-icon]]
> ~[<currentTiddler>category[category3]then[category3-icon]]
> ~[<currentTiddler>category[category4]then[category4-icon]]
> ~[<currentTiddler>category[category5]then[category5-icon]]">
>
<$transclude tiddler=<<category-var>> />
> </$set>
>
Based on the above, it seems like the name of the icon tiddler is just the
value
in the category field, with "-icon" added to it, which you can generate
without
needing that long filter to calculate the "category-var".
Instead, you could write:
{{{ [<currentTiddler>get[category]addsuffix[-icon]] }}}
which you would use in the <$transclude> of your list output, like this:
<$list filter="[tag[project]state[Active]!sort[lastedit]]">
<ul><li>
<$link/>
<$transclude tiddler={{{ [<currentTiddler>get[category]addsuffix[-icon]]
}}} />
(<$view field="lastedit" format="date" template="0DD.0MM.YYYY"/>)
</li></ul>
</$list>
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/33728a36-97d4-416b-9230-8a7a2e8e565fo%40googlegroups.com.