Bimlas,
Remember the solution we have here creates a list of everything in the
hierarchy generated from the root tiddler, in this case Features, the
filter we provide simply determines what in this hierarchy is displayed.
So in your examples below it is always about the tiddlers found in the tree
starting with Features.
The macros I gave you did not account for spaces in the tags, I have added
quotes around "$filter$" where ever it occurs.
\define each-level(filter)
<$list filter="$filter$" variable=nul>
[[$(currentTiddler)$]] "$filter$"<br>
</$list>
<$list filter="[is[current]tagging[]]">
<<each-level "$filter$">>
</$list>
\end
\define list-toc(tiddlername filter)
<$tiddler tiddler="$tiddlername$">
<$list filter="[is[current]tagging[]]">
<<each-level "$filter$">>
</$list>
</$tiddler>
\end
With this now working for tags with spaces, The simplest way to extend the
filter for your other tags is as follows, not how for each case we must
specify [all[current]] (Apparently this is more efficient than
[is[current]] which would do the same thing.
<<list-toc Features "[all[current]tag[Drag and Drop]]
[all[current]tag[Mechanisms]] [all[current]tag[Features]]">>
Do remember however this only show items in the Features Toc that also have
the filtered tags, the following code lists all items with one or more of
the tree tags;
<$list filter="[[all[current]tag[Drag and Drop]]
[all[current]tag[Mechanisms]] [all[current]tag[Features]]">
</$list>
The result is similar to the featured toc because of the data on
Tidlywiki.com
Also; To assist with diagnosing the list I replaced
[[$(currentTiddler)$]]<br>
With
[[$(currentTiddler)$]] : {{!!tags}}<br>
To show the tags on each tiddler in the Features tree that are displayed
Finally, providing the filter [is[current]] or [all[current]] will display
everything in the tree without and additional "filtering"
<<list-toc TableOfContents "[all[current]]">>
Regards
Tony
On Wednesday, October 17, 2018 at 4:57:50 PM UTC+11, bimlas wrote:
>
> Whoaaa...! o_O Big respect, it works nicely! ^-^ Just tried out on
> https://tiddlywiki.com/ with
>
> <<list-toc Features "[is[current]tag[Mechanisms]]">>
>
> I tried to apply more tag filters without success (to show tiddlers
> related to "Features", "Mechanism", "Drag and Drop"), but I think it would
> need a different method, because different levels may associated to
> different tags, but it should filter those which are related to ALL of the
> given tags.
>
> One more question: I'm sure that I misunderstood something, but why is
> this listing everything related to "Features"? For example it shows "Using
> SVG" too, but it's tagged by "Features" only.
>
> <<list-toc Features "[is[current]tag[Drag and Drop]]">>
>
> Anyway: a big thanks for sharing your knowledge with us!
>
--
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/1bc49726-b2c4-4ff6-844e-1c6a677c1a21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.