Only as a cream topping, but not essential:
<$macrocall
$name="toc-tabbed-internal-nav"
tag="TableOfContents"
selectedTiddler="$:/temp/toc/selectedTiddler"
unselectedText="<p>Select a topic in the table of contents. Click the arrow to expand a topic.</p>"
missingText="<p>Missing tiddler.</p>"
template="CheckboxTemplate"
/>
<$edit-text tiddler=additionalCriteria tag=input size=20 /><br>
<<list-links "[field:criteria[yes]prefix{additionalCriteria}]">>
<$checkbox field="criteria" tag={{!!title}} checked="yes" unchecked="no"/> {{!!title}}Enter code here...
Am Mittwoch, 7. Februar 2018 16:31:18 UTC+1 schrieb Mark S.:Here's an ugly, proof-of-concept approach. Make a tiddler:
<$macrocall
$name="toc-tabbed-internal-nav"
tag="TableOfContents"
selectedTiddler="$:/temp/toc/selectedTiddler"
unselectedText="<p>Select a topic in the table of contents. Click the arrow to expand a topic.</p>"
missingText="<p>Missing tiddler.</p>"
template="CheckboxTemplate"
/>
<$edit-text tiddler=additionalCriteria tag=input size=20 /><br>
<<list-links "[field:criteria[yes]prefix{additionalCriteria}]">>
Then make a template tiddler called CheckboxTemplate with these contents:
<$checkbox field="criteria" tag={{!!title}} checked="yes" unchecked="no"/> {{!!title}}Enter code here...
Now you can check tiddlers using the checkbox that appears to the right in the TOC tag tree. The results appear below. You can filter the results with the edit box.
There are lots of refinements possible.
Good luck,
-- Mark
- When I choose "A" by clicking the checkbox, it adds the tag "B" to the tiddler "B".
<$checkbox field="criteria" checked="yes" unchecked="no"/> {{!!title}}Enter code here...
\define addCrit() $(additionalCriteria)$
<$macrocall
$name="toc-tabbed-internal-nav"
tag="TableOfContents"
selectedTiddler="$:/temp/toc/selectedTiddler"
unselectedText="<p>Select a topic in the table of contents. Click the arrow to expand a topic.</p>"
missingText="<p>Missing tiddler.</p>"
template="CheckboxTemplate"
/>
<$edit-text tiddler=additionalCriteria tag=input size=20 /><br>
<$vars additionalCriteria={{additionalCriteria}}>
<<list-links "[field:criteria[yes]tagging[]regexp<addCrit>]">>
</$vars>
Enter code here..." which is something left over from the gügle editor.
-- Mark
Oops. Change CheckboxTemplate to
<$checkbox field="criteria" checked="yes" unchecked="no"/> {{!!title}}
\define addPrefix() +[tag[
\define addSuffix() ]]
\define finalFilter() [all[tiddlers]] $(myfilter2)$ +[regexp[$(additionalCriteria)$]]
<$macrocall
$name="toc-tabbed-internal-nav"
tag="TableOfContents"
selectedTiddler="$:/temp/toc/selectedTiddler"
unselectedText="<p>Select a topic in the table of contents. Click the arrow to expand a topic.</p>"
missingText="<p>Missing tiddler.</p>"
template="CheckboxTemplate"
/>
<$edit-text tiddler=additionalCriteria tag=input size=20 /><p/>
<$vars additionalCriteria={{additionalCriteria}}>
<$set filter="[field:criteria[yes]addprefix<addPrefix>addsuffix<addSuffix>]" name=myfilter>
<$wikify text=<<myfilter>> name=myfilter2 type=text>
<$macrocall $name=list-links filter=<<finalFilter>> />
</$wikify>
</$set>
</$vars>
I don't know anything about the popup-tagger. Is this change incorporated into your test wiki? I'm not seeing anything odd.
I think the "toc-tabbed-internal-nav" code would need to be hacked to stop presenting results for "children" (tiddlers without tag descendants).
Choosed Tags: <$list filter="[field:criteria[yes]]" storyview="pop"><$set name="backgroundColor" value={{!!color}}><span style=<<tag-styles>> class="tc-tag-label">
<$view field="title" format="text" />
<$button message="tm-remove-tag" param={{!!title}} class="tc-btn-invisible tc-remove-tag-button">×</$button></span>
</$set>
</$list>
<div style="display:inline;"><<show-system>></div>
<$count filter=<<finalFilter>> /> matching tiddler:
<$macrocall $name=list-links filter=<<finalFilter>> /
>
I was kind of hoping that by now someone would jump in with a ready-made, turnkey solution for you ;-)
Is there some reason that $:/temp/pptg-taggroup is tagged as Character ? It seems to work without the tag.
<$button>Open ''ALL found'' Tiddlers
<$list filter=<<finalFilter>>>
<$action-navigate $to=<<currentTiddler>> $scroll=no/>
</$list>
</$button>
\define addPrefix() +[tag[
\define addSuffix() ]]
\define finalFilter() [all[tiddlers]!is[system]] $(myfilter2)$ +[regexp[^$(additionalCriteria)$]]
<div style="background:plum;">
<$reveal type="nomatch" state="$:/state/SampleRevealMTSG&W" text="show">
<$button set="$:/state/SampleRevealMTSG&W" setTo="show">Show tags for @@color:green;"Character"@@</$button>
</$reveal>
<$reveal type="match" state="$:/state/SampleRevealMTSG&W" text="show">
<$button set="$:/state/SampleRevealMTSG&W" setTo="hide">Hide tags for @@color:red;"Character"@@</$button>
<$list filter="[tag[Character]![$:/temp/pptg-taggroup]sort[title]]" template="$:/core/ui/TagTemplate"
selectedTiddler="$:/temp/selectedTiddler"
unselectedText="<p>Select a topic in the table of contents. Click the arrow to expand a topic.</p>"
missingText="<p>Missing tiddler.</p>"
template="CheckboxTemplate"
/>
<$reveal type="nomatch" state="$:/state/SampleRevealMTSAll" text="show">
<$button set="$:/state/SampleRevealMTSAll" setTo="show">Show tags for @@color:green;"New Character"@@</$button>
</$reveal>
<$reveal type="match" state="$:/state/SampleRevealMTSAll" text="show">
<$button set="$:/state/SampleRevealMTSAll" setTo="hide">Hide tags for @@color:red;"New Character"@@</$button>
<$list filter="[tag[New Character]![$:/temp/pptg-taggroup]sort[title]]" template="$:/core/ui/TagTemplate"
selectedTiddler="$:/temp/selectedTiddler"
unselectedText="<p>Select a topic in the table of contents. Click the arrow to expand a topic.</p>"
missingText="<p>Missing tiddler.</p>"
template="CheckboxTemplate"
/>
</$reveal>
</$reveal>
<br/>
<$edit-text tiddler=additionalCriteria tag=input size=20 /><p/>
<$vars additionalCriteria={{additionalCriteria}}>
<div style="background:white;"><br/>
<$set filter="[field:criteria[yes]addprefix<addPrefix>addsuffix<addSuffix>]" name=myfilter>
<$wikify text=<<myfilter>> name=myfilter2 type=text>
Choosed Tags: <$list filter="[field:criteria[yes]sort[title]]" storyview="pop"><$set name="backgroundColor" value={{!!color}}><span style=<<tag-pill-styles>> class="tc-tag-label">
<$view field="title" format="text" />
<$button message="tm-remove-tag" param={{!!title}} class="tc-btn-invisible tc-remove-tag-button">×</$button></span>
</$set>
</$list>
<div style="display:inline;"><<show-system>></div>
<$button>Open ''ALL found'' Tiddlers
<$list filter=<<finalFilter>>>
<$action-navigate $to=<<currentTiddler>> $scroll=no/>
</$list>
</$button>
<$count filter=<<finalFilter>> /> matching tiddler:
<$macrocall $name=list-links filter=<<finalFilter>> />
</$wikify>
</$set>
</$vars>
<$checkbox field="criteria" checked="yes" unchecked="no"/>{{!!title}}