The expandable arrows can only be changed by changing the code.
If you want to experiment, put the following contents in a tiddler, and tag
it as $:/tags/Macro :
\define toc-linked-selective-expandable-body(tag,sort:"",itemClassFilter:" "
,exclude,path,prune:"")
<$set name="toc-state" value=<<qualify
"""$:/state/toc$path$-$(currentTiddler)$""">>>
<$set name="toc-item-class" filter="""$itemClassFilter$""" emptyValue=
"toc-item" value="toc-item-selected" >
<$set name="prune" value="""$prune$""">
<li class=<<toc-item-class>>>
<$link>
<$list filter="[all[current]] -[enlist<prune>]
+[tagging[]limit[1]]" variable="ignore" scratch="-[enlist<prune>]"
emptyMessage="<$button
class='tc-btn-invisible'>{{$:/core/images/blank}}</$button>">
<$reveal type="nomatch" state=<<toc-state>> text="open">
<$button set=<<toc-state>> setTo="open" class="tc-btn-invisible
tc-popup-keep">
{{$:/core/images/right-arrow}}
</$button>
</$reveal>
<$reveal type="match" state=<<toc-state>> text="open">
<$button set=<<toc-state>> setTo="close" class="tc-btn-invisible
tc-popup-keep">
{{$:/core/images/down-arrow}}
</$button>
</$reveal>
</$list>
<<toc-caption>>
</$link>
<$reveal type="match" state=<<toc-state>> text="open">
<$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>>
sort="""$sort$""" itemClassFilter="""$itemClassFilter$""" exclude=
"""$exclude$""" path="""$path$""" prune="""$prune$"""/>
</$reveal>
</li>
</$set>
</$set>
</$set>
\end
\define toc-selective-expandable-empty-message()
<<toc-linked-selective-expandable-body tag:"""$(tag)$"""
sort:"""$(sort)$""" itemClassFilter:"""$(itemClassFilter)$"""
exclude:"""$(excluded)$""" path:"""$(path)$""" prune:"""$(prune)$""">>
\end
\define
toc-selective-expandable(tag,sort:"",itemClassFilter,exclude,path,prune)
<$vars tag="""$tag$""" sort="""$sort$"""
itemClassFilter="""$itemClassFilter$""" excluded="""$exclude$ -[[$tag$]]"""
path="""$path$/$tag$""" prune="""$prune$""" >
<ol class="tc-toc toc-selective-expandable">
<$list filter="""[all[shadows+tiddlers]tag[$tag$]!has[draft.of]$sort$]
-[[$tag$]] $exclude$""">
<$list filter="[all[current]toc-link[no]]" variable="ignore"
emptyMessage=<<toc-selective-expandable-empty-message>> >
<$macrocall $name=toc-unlinked-selective-expandable-body tag="""
$tag$""" sort="""$sort$""" itemClassFilter="""$itemClassFilter$"""
exclude=<<excluded>> path=<<path>> prune="""$prune$""" >
</$list>
</$list>
</ol>
</$vars>
\end
This code will override the existing core code. Now you can "prune"
branches by their tiddler name. For instance:
<div class="tc-table-of-contents">
<<toc-selective-expandable "TableOfContents" prune:"Learning [[Drag and
Drop]]">>
</div>
If used at TiddlyWiki.com will show the standard table of contents, but
"Learning" and "Drag and Drop" (under Features) will both be links -- not
expandable branches.
Oh, before dropping in this code be sure to close all existing branches or
the existing branch state will force the contents to display even without
an expansion "parent".
This applies only to the toc-selective-expandable macro.
Be sure to make a backup of your work before trying this -- you never know.
HTH
-- Mark
On Thursday, October 4, 2018 at 7:44:18 AM UTC-7, [email protected]
wrote:
>
> Both the sort and the exclude options seem to meet my needs, so I think I
> will err on the side of caution and go with the choice that is properly
> documented on the site.
>
> I take it the expandable arrows are non-negotiable?
>
> Thank you.
>
--
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/6d0ed60d-fe5d-45f5-bd52-f265f7278f88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.