> Then you could write:
> {{{ [tags[]tag[Category]addsuffix[-icon]] }}}
>
> In other words:
> "for the current tiddler, get it's tags, then select only tags are
> themselves tagged with "Category" and add the "-icon" suffix to that tag
> name
>
> This still assumes that there's only one
I just checked this one (for categories in the fields):
> Instead, you could write:
> {{{ [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]]">
>
> <$link/>
>
On Wednesday, July 1, 2020 at 4:30:08 AM UTC-7, Jake wrote:
>
> PS. But btw what to do if the category name is located not in a special
> field but is just one of the tags? And there are several those tags of
> course. So tiddler can have: "Type1 Category3" tags or "Type4 Category1"
> etc. Is
> Possibly, you can use the SetWidgets "select" attribute or if that doesn't
> work, try with WikifyWidget:
>
> <$set name="category-var" filter="..." select=0>
> <$list ...>
> <>
>
>
>
Ermmm... the problem is that the above mentioned filter for $set assesses
the fields of
On Wednesday, July 1, 2020 at 3:29:51 AM UTC-7, Jake wrote:
>
> <$set name="category-var"
> filter="[category[category1]then[category1-icon]]
> ~[category[category2]then[category2-icon]]
> ~[category[category3]then[category3-icon]]
> ~[category[category4]then[category4-icon]]
>
Possibly, you can use the SetWidgets "select" attribute or if that doesn't
work, try with WikifyWidget:
<$set name="category-var" filter="..." select=0>
<$list ...>
<>
if that doesn't work, exchange the $set widget for:
<$wikify name="category-var" text={{{ thefilter }}} >
...
The
6 matches
Mail list logo