mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-04 15:29:56 +00:00
if currentTiddler includes itself as a child do not show a more-chevron
This commit is contained in:
parent
6ce2eaad2c
commit
13be3c2147
@ -269,7 +269,7 @@ Shows an expandable toc. Item always have an open/close chevron
|
|||||||
<!-- v5.1.23 use target-field if present in tiddler -->
|
<!-- v5.1.23 use target-field if present in tiddler -->
|
||||||
<$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>
|
<$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>
|
||||||
<!-- The subfilter<exclude> needs to be the last filter run -->
|
<!-- The subfilter<exclude> needs to be the last filter run -->
|
||||||
<% if [subfilter<tf.toc-hasChildren>] [subfilter<tf.toc-curTidInclude>] +[limit[1]] %>
|
<% if [subfilter<tf.toc-hasChildren>] [subfilter<tf.toc-curTidInclude>] -[<currentTiddler>] -[subfilter<exclude>] +[limit[1]] %>
|
||||||
<<toc-item>>
|
<<toc-item>>
|
||||||
<% else %>
|
<% else %>
|
||||||
<$button class='tc-btn-invisible'>
|
<$button class='tc-btn-invisible'>
|
||||||
@ -290,11 +290,14 @@ Shows an expandable toc. Item always have an open/close chevron
|
|||||||
</li>
|
</li>
|
||||||
</$qualify>
|
</$qualify>
|
||||||
\end
|
\end
|
||||||
|
<!-- <$log ct=<<currentTiddler>>
|
||||||
|
includeList={{{ [subfilter<tf.toc-hasChildren>] [subfilter<tf.toc-curTidInclude>] -[subfilter<exclude>] +[limit[1]] }}}
|
||||||
|
hasChildren={{{ [subfilter<tf.toc-hasChildren>] }}} path=<<path>> exclude=<<exclude>>/> -->
|
||||||
|
|
||||||
\procedure toc-unlinked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path,captionField,tagField,parentField,itemTemplate)
|
\procedure toc-unlinked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path,captionField,tagField,parentField,itemTemplate)
|
||||||
<$qualify name="toc-state" title=<<tf.toc-stateTitle>> >
|
<$qualify name="toc-state" title=<<tf.toc-stateTitle>> >
|
||||||
<li class=<<tf.toc-itemClass>>>
|
<li class=<<tf.toc-itemClass>>>
|
||||||
<% if [subfilter<tf.toc-hasChildren>] [subfilter<tf.toc-curTidInclude>] +[limit[1]] %>
|
<% if [subfilter<tf.toc-hasChildren>] [subfilter<tf.toc-curTidInclude>] -[<currentTiddler>] -[subfilter<exclude>] +[limit[1]] %>
|
||||||
<<toc-item isUnlinked:"yes">>
|
<<toc-item isUnlinked:"yes">>
|
||||||
<% else %>
|
<% else %>
|
||||||
<$button class="tc-btn-invisible">
|
<$button class="tc-btn-invisible">
|
||||||
|
Loading…
Reference in New Issue
Block a user