Hi Uwe

I'd like to remove or add every individual tag of my tiddlywiki with a 
> special button (each tag has its own button for add or remove). How is it 
> possible to generate them in a loop?
>

I have something similar (but different) im my listreveal plugin. The lists 
are generated like this (I simplify the code a bit for better understanding 
of the important parts – this is NOT tested): 

<ul class="lr-tags-add">
<$list filter=<<add-tags-filter>> variable="tag">
<li>
   <$macrocall $name="teBtnTagAddRemove" btntext=<<tag>> add=<<tag>> 
tiddler=<<tiddler>> tooltip="add"/> 
</li>
</$list>
</ul>

<ul class="lr-tags-remove">
<$list filter=<<remove-tags-filter>> variable="tag">
<li>
   <$macrocall $name="teBtnTagAddRemove" btntext=<<tag>> remove=<<tag>> 
tiddler=<<tiddler>> tooltip="remove"/> 
</li>
</$list>
</ul>

To make this work you would have to surround it with suitable definitions 
for all variables, e.g.

<$wikify name="tiddler" text=<<currentTiddler>>>
<$set name="add-tags-filter" value="[tags[]sort[]] -[<tiddler>tags[]]>
<$set name="remove-tags-filter" value="[<tiddler>tags[]]">

...

</$set>
</$set>
</$wikify>

and last but not least you would need my universal macro teBtnTagAddRemove from 
https://tid.li/tw5/hacks.html#%24%3A%2Fplugins%2Ftelmiger%2Flistreveal%2Ftags 


Does this make sense?

Good night and good luck!
Thomas

-- 
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/20920e6f-526e-4140-9a31-0591f7930188%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to