From 13be3c214709215a6bbe2aff9147a5d0e4c830ed Mon Sep 17 00:00:00 2001 From: pmario Date: Thu, 8 Feb 2024 13:42:58 +0100 Subject: [PATCH] if currentTiddler includes itself as a child do not show a more-chevron --- core/wiki/macros/toc.tid | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/wiki/macros/toc.tid b/core/wiki/macros/toc.tid index a86c05153..daf40d43c 100644 --- a/core/wiki/macros/toc.tid +++ b/core/wiki/macros/toc.tid @@ -269,7 +269,7 @@ Shows an expandable toc. Item always have an open/close chevron <$link to={{{ [get[target]else] }}}> - <% if [subfilter] [subfilter] +[limit[1]] %> + <% if [subfilter] [subfilter] -[] -[subfilter] +[limit[1]] %> <> <% else %> <$button class='tc-btn-invisible'> @@ -290,11 +290,14 @@ Shows an expandable toc. Item always have an open/close chevron \end + \procedure toc-unlinked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path,captionField,tagField,parentField,itemTemplate) <$qualify name="toc-state" title=<> >
  • >> - <% if [subfilter] [subfilter] +[limit[1]] %> + <% if [subfilter] [subfilter] -[] -[subfilter] +[limit[1]] %> <> <% else %> <$button class="tc-btn-invisible">