> 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 ...>
> <<category-var>>
> </$list> 
> </$set>
>
 
Ermmm... the problem is that the above mentioned filter for $set assesses 
the fields of "currentTiddler"... sooooo... if I'm using it "outside" the 
list - I'm just applying category icon of the current tiddler to all those 
mentioned in the list. I need to shove it "inside" the list somehow. :)


 

> 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>
>

Unfortunately they don't. :(  I changed the values for the purpose of the 
example. Though that's not a bad idea. I can rename them and see if that 
works. I'll check it now.
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 there a way to "get" those?

-- 
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/c2184a92-af9f-4e30-9b7a-e6423e36473co%40googlegroups.com.

Reply via email to