On Friday, November 15, 2013 11:34:42 AM UTC+1, Hugo Pires wrote: > > I want to get the LIST FILTER macro working as in this example > > <<list filter "[tag[systemConfig]] [sort[-modified]] [limit[5]]">> >
IMO this is not really TW5 syntax ... it works in TWc. With TW5, there will be no systemConfig tag anymore. You can tag tiddlers with systemConfig but they don't have a special meaning like in TWc. TW5 uses the ListWidget see: http://five.tiddlywiki.com/static/ListWidget You could define a list macro that is similar to but _not the same_ as in TWc \define list(filter:"", emptyMessage:"no elements!", template:"", class:"", type:"ul") <$type$ class="m-list $class$"><$list filter="[!is[system]!has[draft.of]$filter$]" emptyMessage="$emptyMessage$"><li><$link to={{!!title}}><$view field="title"/></$link></li></$list></$type$> \end and call it like this. <<list filter:"tag[edition]sort[title]">> or with a type for ol's <<list filter:"tag[edition]sort[title]" type:ol>> You can find some more info at github: https://github.com/Jermolene/TiddlyWiki5/issues/209 hope that helps mario -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" 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/tiddlywikidev. For more options, visit https://groups.google.com/groups/opt_out.
