Hi Steve
> Ah, I clearly need to explain better.
>
> I have parent tiddlers: A, B, C, D, etc. each tagged "parent"
>
> I have child tiddlers: A1, B1, C2, D2, etc. (they are not tagged "child", but
> are tagged with the name of the parent tiddler
>
> I need to have a template to manage the presentation of child tiddlers, but
> don't know how to write a filter that will capture any tiddler that is a
> child of any of the parent tiddlers, without specifying or knowing the name
> of the parent tiddlers.
OK, so this is intended to be a view template segment that is activated for
these child tiddlers?
If so, the following filter can be used to determine whether the current
tiddler is tagged with a tag that is itself tagged with “parent”:
[<currentTiddler>] -[tag[parent]tagging[]]
The filter will return an empty result set if the current tiddler is tagged by
a tiddler tagged “parent”. So, you should be able to do something like this
within your view template segment:
<$list filter="[<currentTiddler>] -[tag[parent]tagging[]]"
emptyMessage={{$:/_MyTemplateForChildTiddlers}} variable="ignore"/>
Then, in $:/_MyTemplateForChildTiddlers you’d have the template that is only
displayed for tiddlers tagged by tiddlers tagged “parent”.
Best wishes
Jeremy
>
> So neither Xavier's nor Mat's approach works because I don't know the name of
> the parent tiddler, and there is nothing about the tiddlers other than the
> fact that each is tagged to a tiddler that is tagged "parent"...
>
> <$list filter="[is[current] (tagged to a tiddler that is a parent) ]]">
>
>
>
> On Tuesday, July 9, 2019 at 5:59:07 AM UTC-4, Xavier wrote:
> Hi Steve,
>
> What about using the tagging operator like so: [tag[Canis]tagging[]] ?
>
> Cheers,
> -- Xavier Cazin
>
>
> On Mon, Jul 8, 2019 at 8:55 PM Steven Schneider <[email protected] <>> wrote:
> Hi everyone, I sense that others' have asked but I can't quickly find in the
> group:
>
> How would I filter on a tiddler being a "subtag." For example, if I had
> tiddlers for each species in the animal genus Canis
> <http://1kai.dokkyomed.ac.jp/mammal/en/genus/canis.html> I'd have tiddlers
> tagged "Canis" titled Canis mesomelas, Canis lupus, Canis latrans
>
> How would I create a filter to capture species, effectively capturing
> tiddlers that are tagged to one of the tiddlers tagged to tiddler "Genus"
>
> ?
>
> Thanks,
>
>
> //steve.
>
>
> --
> 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
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/c19cd84a-7383-4721-b9ea-cc61ef8f9ab6%40googlegroups.com
>
> <https://groups.google.com/d/msgid/tiddlywiki/c19cd84a-7383-4721-b9ea-cc61ef8f9ab6%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> 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]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/4f17b339-bd62-45f5-83d5-900e4134a80b%40googlegroups.com
>
> <https://groups.google.com/d/msgid/tiddlywiki/4f17b339-bd62-45f5-83d5-900e4134a80b%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
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/549E016D-7153-45D7-B91A-0A3D822AF470%40gmail.com.
For more options, visit https://groups.google.com/d/optout.