On Friday, January 24, 2014 6:53:11 PM UTC+1, Chris Lott wrote:
>
> I am using the normal code to list a set of tiddlers with a particular tag:
> <$list filter="[tag[daily]sort[title]]">
> </$list>
>
> How can I have that list output as an unordered list? Sorry for so many
> probably silly questions...I really do Google around before asking!
>
There are no silly questions.
You where close allready :)
TW5 lets you define macros. macros have a similar interface than TWclassic
macros.
If you copy the following code into a TW5 you can play with it. The problem
is, that you need to copy this macro into every tiddler. .... There will be
"global" macros in the future.
code: ----------
\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
<<list filter:"tag[community]sort[title]">>
<<list filter:"tag[community]sort[title]" type:ol>>
<<list filter:"tag[empty]sort[title]">>
------- end
Docs can be found at tiddlywiki.com if you search for "macros" -> Macros in
WikiText
-m
--
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/groups/opt_out.