So I'm listing the tags on a list of tagged tiddlers

<$list filter="[tag[character]]">
<li><$link to={{!!title}}><$view field="title"/>
</$link> -
<small>(<$list filter="[{!!title}tags[]]"><span class="char-tag" 
style=background-color:{{!!color}}><$link to={{!!title}}><$view 
field="title"></$view></$link><$fields 
tiddler={{!!title}}/></span></$list>)</small>

</li>
</$list>

which gives me something like this:

AlastairClarkMessner - (character TheUSA)
AuraAI - (character)
AuroraLeitner - (character)
BarnesLeitner - (character TheUSA)
CamilleStephenson - (character TheUSA TheFederation TheAC)
ClarkM - (character)
JustineBaxter - (character TheUSA)
Messner - (character)
FeenHaluxion - (character TheGrandLaraxa)
KeequeProbe - (TheGrandLaraxa character)
KatherineHawke - (character)

But I'm trying to set the background color of the tags in parens using the 
Color field of the tiddlers for those tags, so if the "character" tag is 
green, character should have a green background after Alastair.

My problem is that {{!!color}} doesn't get parsed inside a block of normal 
HTML, and I can't figure out how to insert a variable reference inside the 
appropriate piece of HTML.

The output HTML looks like:

<span class="char-tag" style="background-color:{{!!color}}"><a class=" 
tw-tiddlylink tw-tiddlylink-resolves" href="#character">character</a></span>

Any Ideas?

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to