Luis Gonzalez wrote:
>
> I wrote my two first macros.
>
Fantastic!!!
The first is a WikiText macro, but I think we have no control sentences
> like *if *or *for *loop in WikiText macros. I access all the tiddler
> fields: title, text, created, modified, tags....
>
Sure; the standard way is to use the listwidget with the condition in the
filter. There is AFAIK no loop X times for a preset number but the list
filter iterates for each element that comes out of the filter and that you
might want to manipulate.
<$list filter="[all[]tag[foo]]">
{{!!myfield}}
</$list>
What is it you want to achieve?
> The second is a Javascript macro because I need control sentences. But in
> it I don't know how to access to the current tiddler fields.
>
I'm too bad at real coding but I'm sure that if you just look at some of
the other js modules, you'll find this right away. Just do a search for
".js" in advanced search.
<:-)
--
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 https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/5ee84528-d78a-47d1-ba11-f0601571a646%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.