2024-02-14 12:41:43 +00:00
created: 20240213183404352
2024-07-23 10:50:07 +00:00
modified: 20240723104436360
2024-02-14 12:41:43 +00:00
tags: testTOC
title: test-Contents-toc-hide
type: text/vnd.tiddlywiki
2024-07-23 10:50:07 +00:00
<<wikitext-example-without-html src:"""\procedure openBranch()
2024-02-14 12:41:43 +00:00
<<toc-openBranch path:"/" currentTiddler:"test-Contents-toc-hide" manual:yes>>
\end
\procedure closeBranch()
<<toc-closeBranch path:"/" currentTiddler:"test-Contents-toc-hide" manual:yes>>
\end
<$button actions=<<openBranch>>>Open Tree</$button>
<$button actions=<<closeBranch>>>Close Tree</$button>
2024-07-23 10:50:07 +00:00
""">>
2024-02-14 12:41:43 +00:00
[[toc-1.1.1-hidden]] contains a field: `toc-hide: yes`
The following examples uses the `toc-hide: yes` field in the currentTiddler to exclude a tiddler from the current branch
2024-07-23 10:50:07 +00:00
<<wikitext-example-without-html src:"""<div class="tc-table-of-contents">
2024-02-14 12:41:43 +00:00
<<toc-selective-expandable tag:"test-Contents-toc-hide">>
2024-07-23 10:50:07 +00:00
</div>""">>
2024-02-14 12:41:43 +00:00
The following examples uses: `exclude:"[toc-hide[yes]]"`, which allows you to use any field name with a specific value to be excluded from every branch
2024-07-23 10:50:07 +00:00
<<wikitext-example-without-html src:"""<div class="tc-table-of-contents">
2024-02-14 12:41:43 +00:00
<<toc-selective-expandable tag:"test-Contents-toc-hide" exclude:"[toc-hide[yes]]">>
2024-07-23 10:50:07 +00:00
</div>""">>
2024-02-14 12:41:43 +00:00
----------
simple toc as a reference
2024-07-23 10:50:07 +00:00
<<wikitext-example-without-html src:"""<div class="tc-table-of-contents">
2024-02-14 12:41:43 +00:00
<<toc "test-Contents-toc-hide">>
2024-07-23 10:50:07 +00:00
</div>""">>
2024-02-14 12:41:43 +00:00