Hi axelm,
try:
<<forEachTiddler
where 'tiddler.title!=="TiddlerB" &&
tiddler.tags.containsAll(store.getTiddler("TiddlerB").tags)
'
>>
I thought I saw that you had a another question, though I don't see it
now. That question was about excluding tags from Tiddler B. For
that, you could try:
<<forEachTiddler
where 'tiddler != context.inTiddler &&
tiddler.tags.containsAll(context.inTiddler.tags) && !
tiddler.tags.containsAny(store.getTiddler("TiddlerB").tags) '
>>
cmari
On Jan 20, 2:45 pm, axelm <[email protected]> wrote:
> That works great!!!
>
> One more question:
>
> How can I make this code:
>
> <<forEachTiddler
> where 'tiddler != context.inTiddler &&
> tiddler.tags.containsAll(context.inTiddler.tags)'
>
> refer to another tiddler, instead of the tiddler it resides in?
>
> Hope this makes sense.
>
> axelm
>
> On Dec 31 2010, 7:52 am, cmari <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi axelm,
> > What about:
> > <<forEachTiddler
> > where 'tiddler != context.inTiddler &&
> > tiddler.tags.containsAll(context.inTiddler.tags)'
>
> > (The sort().join("]]") approach doesn't seem to work for me - but
> > perhaps you need it for some other reason?).
> > cmari
>
> > On Dec 30, 7:00 pm, Måns <[email protected]> wrote:
>
> > > Hi axelm
>
> > > > <<forEachTiddler
> > > > where 'tiddler != context.inTiddler &&
> > > > tiddler.tags.sort().join("]]") ==
> > > > context.inTiddler.tags.sort().join("]]")'
> > > > so that, instead of listing the tiddlers that have all the tags of the
> > > > calling tiddler, to listing the tiddlers that have all the tags but
> > > > could also have additional tags?
>
> > > untested!
> > > I would add "&& tiddler.tags.contains("SomeTag")" to the formula ,
> > > maybe just after "!= context.inTiddler" (without the outer
> > > qoutes...)http://tiddlywiki.abego-software.de/#WhereClauseExamples
>
> > > Cheers Måns Mårtensson
--
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.