mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 14:23:53 +00:00
toc-include replaces the default filter
This commit is contained in:
parent
51aa7a054a
commit
141f8029dc
@ -40,7 +40,10 @@ tags: $:/tags/Macro
|
|||||||
\procedure toc-body(tag,sort:"",itemClassFilter,exclude,path)
|
\procedure toc-body(tag,sort:"",itemClassFilter,exclude,path)
|
||||||
<ol class="tc-toc">
|
<ol class="tc-toc">
|
||||||
<!-- text substitution is needed for backwards compatibility -->
|
<!-- text substitution is needed for backwards compatibility -->
|
||||||
<$list filter=`[all[shadows+tiddlers]tag<tag>!has[draft.of]$(sort)$] [subfilter<tf.toc-include>] -[<tag>] -[subfilter<exclude>]`>
|
<!-- <$list filter=`[all[shadows+tiddlers]tag<tag>!has[draft.of]$(sort)$] [subfilter<tf.toc-include>] -[<tag>] -[subfilter<exclude>]`> -->
|
||||||
|
<$list filter=` [subfilter<tf.toc-include>]
|
||||||
|
:else[all[shadows+tiddlers]tag<tag>!has[draft.of]$(sort)$]
|
||||||
|
-[<tag>] -[subfilter<exclude>]`>
|
||||||
<%if [<currentTiddler>] -[subfilter<tf.toc-exclude>] %>
|
<%if [<currentTiddler>] -[subfilter<tf.toc-exclude>] %>
|
||||||
<$let item=<<currentTiddler>> __path=<<tf.toc-newPath>> >
|
<$let item=<<currentTiddler>> __path=<<tf.toc-newPath>> >
|
||||||
<!-- adding tf.toc-exclude, excludes blocked elements from all visible sub-nodes -->
|
<!-- adding tf.toc-exclude, excludes blocked elements from all visible sub-nodes -->
|
||||||
@ -139,7 +142,10 @@ Shows an expandable toc. Item always have an open/close chevron
|
|||||||
\procedure toc-expandable(tag,sort:"",itemClassFilter:"",exclude,path)
|
\procedure toc-expandable(tag,sort:"",itemClassFilter:"",exclude,path)
|
||||||
<ol class="tc-toc toc-expandable">
|
<ol class="tc-toc toc-expandable">
|
||||||
<!-- text substitution is needed for backwards compatibility -->
|
<!-- text substitution is needed for backwards compatibility -->
|
||||||
<$list filter=`[all[shadows+tiddlers]tag<tag>!has[draft.of]$(sort)$] [subfilter<tf.toc-include>] -[<tag>] -[subfilter<exclude>]`>
|
<!-- <$list filter=`[all[shadows+tiddlers]tag<tag>!has[draft.of]$(sort)$] [subfilter<tf.toc-include>] -[<tag>] -[subfilter<exclude>]`> -->
|
||||||
|
<$list filter=` [subfilter<tf.toc-include>]
|
||||||
|
:else[all[shadows+tiddlers]tag<tag>!has[draft.of]$(sort)$]
|
||||||
|
-[<tag>] -[subfilter<exclude>]`>
|
||||||
<%if [<currentTiddler>] -[subfilter<tf.toc-exclude>] %>
|
<%if [<currentTiddler>] -[subfilter<tf.toc-exclude>] %>
|
||||||
<$let __path=<<tf.toc-newPath>>>
|
<$let __path=<<tf.toc-newPath>>>
|
||||||
<$set name="__excluded" filter="[subfilter<exclude>] [<tag>] [subfilter<tf.toc-exclude>]">
|
<$set name="__excluded" filter="[subfilter<exclude>] [<tag>] [subfilter<tf.toc-exclude>]">
|
||||||
@ -220,7 +226,10 @@ If an item has no children, there is no open/close chevron
|
|||||||
\procedure toc-selective-expandable(tag,sort:"",itemClassFilter,exclude,path)
|
\procedure toc-selective-expandable(tag,sort:"",itemClassFilter,exclude,path)
|
||||||
<ol class="tc-toc toc-selective-expandable">
|
<ol class="tc-toc toc-selective-expandable">
|
||||||
<!-- text substitution is needed for backwards compatibility -->
|
<!-- text substitution is needed for backwards compatibility -->
|
||||||
<$list filter=`[all[shadows+tiddlers]tag<tag>!has[draft.of]$(sort)$] [subfilter<tf.toc-include>] -[<tag>] -[subfilter<exclude>]`>
|
<!-- <$list filter=`[all[shadows+tiddlers]tag<tag>!has[draft.of]$(sort)$] [subfilter<tf.toc-include>] -[<tag>] -[subfilter<exclude>]`> -->
|
||||||
|
<$list filter=` [subfilter<tf.toc-include>]
|
||||||
|
:else[all[shadows+tiddlers]tag<tag>!has[draft.of]$(sort)$]
|
||||||
|
-[<tag>] -[subfilter<exclude>]`>
|
||||||
<%if [<currentTiddler>] -[subfilter<tf.toc-exclude>] %>
|
<%if [<currentTiddler>] -[subfilter<tf.toc-exclude>] %>
|
||||||
<$let __path=<<tf.toc-newPath>>>
|
<$let __path=<<tf.toc-newPath>>>
|
||||||
<$set name="__excluded" filter="[subfilter<exclude>] [<tag>] [subfilter<tf.toc-exclude>]">
|
<$set name="__excluded" filter="[subfilter<exclude>] [<tag>] [subfilter<tf.toc-exclude>]">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user