Make the "Contents" menu item caption configurable

This commit is contained in:
tw-FRed 2023-07-12 23:02:11 +00:00 committed by GitHub
parent f517497fe7
commit 71de856514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -1,6 +1,8 @@
title: $:/plugins/tiddlywiki/menubar/config
tags: $:/tags/ControlPanel/Toolbars
caption: Menu Bar
created: 20230519012218346
modified: 20230712224614730
tags: $:/tags/ControlPanel/Toolbars
title: $:/plugins/tiddlywiki/menubar/config
\define config-base() $:/config/plugins/menubar/MenuItems/Visibility/
@ -28,7 +30,7 @@ The breakpoint position between narrow and wide screens. Should include CSS unit
!! Contents Tag
The tag for the ~TableOfContents used in the Contents dropdown
The tag for the ~TableOfContents used in the Contents dropdown. Add //caption// and //description// fields to the tag tiddler to change ~TableOfContents' menu label.
<$edit-text tiddler="$:/config/plugins/menubar/TableOfContents/Tag" default="" tag="input"/>

View File

@ -1,8 +1,10 @@
title: $:/plugins/tiddlywiki/menubar/items/contents
caption: Contents
description: Table of Contents
caption: <$text text={{{ [{$:/config/plugins/menubar/TableOfContents/Tag}get[caption]else[Contents]] }}}/>
created: 20230519010904497
description: <$text text={{{ [{$:/config/plugins/menubar/TableOfContents/Tag}get[description]else[Table of Contents]] }}}/>
is-dropdown: yes
modified: 20230712225429073
tags: $:/tags/MenuBar
title: $:/plugins/tiddlywiki/menubar/items/contents
<div class="tc-table-of-contents">