Thanks. So `if` and `then` tags are not recommended.

2016-06-13 13:29 GMT+02:00 Jed Carty <[email protected]>:

> Using the emptyMessage attribute of the list widget you can make simple if
> statements. Like this:
>
> <ol>
> <$list filter="[!has[draft.of]tag[3-act]sort[title]]">
> <$list filter='[is[current]tag[feina]][is[current]!tag[completada]]'
> emptyMessage='<li><$link to={{!!title}}><$view
> field="title"/></$link><$list filter='is[current]has[abstract]'> <em><$view
> field="abstract"/></em></$list></li>'>
> <li style='color:red'><$link to={{!!title}}><$view
> field="title"/></$link><$list filter='is[current]has[abstract]'> <em><$view
> field="abstract"/></em></$list></li>
> </$list>
> </$list>
> </ol>
>
> with the inner list widget if the current list item has the tag feina or
> doesn't have the tag completada than the contents of emptyMessage is shown,
> otherwise the one with the color is shown.
> There are other ways to do this using either the set or the reveal widgets
> also, but I think this is the simplest one.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/f6IUb0e61AM/unsubscribe.
> To unsubscribe from this group and all its topics, 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/e3c66d42-cce6-4269-9ecb-f3f30db9f36f%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/e3c66d42-cce6-4269-9ecb-f3f30db9f36f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAJdEXaWMNwppEiubtGd0Zxpfd4Y%2Bd1osuXViCFB3AQcHat%2BDKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to