You can apply the tags as classes like this:
table><tbody>
<tr>
<th>Date</th><th>Topic</th><th>Title</th>
</tr>
<$list filter="[tag[task]sort[topic]]">
<tr class={{!!tags}}>
<td><$link><$view field="created" format="date" template="DD/0MM/YY"
/></$link></td>
<td class="showstatus"><$view field="topic"/></td>
<td><$view field="title"/></td>
</tr>
</$list></tbody></table>
And then a stylesheet (tiddler tagged with $:/tags/Stylesheet) like this:
tr.done td.showstatus {
color: red;
}
-- Mark
On Tuesday, January 8, 2019 at 7:26:28 AM UTC-8, vpl wrote:
>
> Hi,
>
> I struggle to find a way to display a table whose content layout is
> condioned by tiddler field
>
> For example a table like the one below. I would like to highlight in red
> the 'topic' field (<$view field="topic"/>) if the tiddler has a tag "done"
>
> <table><tbody>
> <tr>
> <th>Date</th><th>Topic</th><th>Title</th>
> </tr>
> <$list filter="[tag[task]sort[topic]]">
> <tr>
> <td><$link><$view field="created" format="date"
> template="DD/0MM/YY"/></$link></td>
> <td><$view field="topic"/></td>
> <td><$view field="title"/></td>
> </tr>
> </$list></tbody></table>
>
> I can't find anything that could help me ... but not a tiddlywiki expert
>
> Thanks for your help
>
> Regards
>
> Vpl
>
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/a4fc7388-1e08-411f-86e3-b89debe22430%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.