I think the others are right that it would be easier to do what you
want with fields or slices. But
here are a couple of things that you could do with tags.
If you just want to be able to specify Tag3 on the fly every time you
open the tiddler, you could use a prompt:
<script>myTag = prompt("enter tag");</script><<forEachTiddler where
'tiddler.tags.containsAll([myTag,"Tag1","Tag2"])'>>
Or you could use transclusion: create a tiddler [[FindTag]] with this
inside it:
<<forEachTiddler where 'tiddler.tags.containsAll(["Tag1","Tag2","$1"])
' >>
Then in a another tiddler you could put
!Tag3a
<<tiddler FindTag with:Tag3a>>
!Tag3b
<<tiddler FindTag with:Tag3b>>
cmari
On Jan 15, 8:47 am, Tobias Beer <[email protected]> wrote:
> Hi Tseta,
>
> I think, above all, you have a design problem here. You should not be
> using a tag for your third value but a named field from which you can
> gather all available options later on by looping over it.
>
> I personally prefer to write javascript code directly using
> InlineJavascriptPlugin or using transclusion via the tiddler-
> macro ...as that doesn't require me to wrap my mind around
> ForEachTiddler. In simple cases however, FET does the job very well.
>
> Must be your lucky day, I just scripted what I think you wanted as an
> inline-script, all commented:
>
> http://pastebin.com/f6cb88a3a
>
> Good luck,
>
> Tobias.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.