From 78c72b85fbb9e2af7cfbdfe7b833a98178108207 Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Fri, 6 Nov 2020 17:26:44 +0100 Subject: [PATCH] Make tag for menubar-contents dropdown configurable (#4983) * Make tag for menubar-contents dropdown configurable * Make tag for menubar-contents dropdown configurable * Make tag for menubar-contents dropdown configurable --- plugins/tiddlywiki/menubar/config-TableOfContentsTag.tid | 2 ++ plugins/tiddlywiki/menubar/config.tid | 6 ++++++ plugins/tiddlywiki/menubar/items/contents.tid | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 plugins/tiddlywiki/menubar/config-TableOfContentsTag.tid diff --git a/plugins/tiddlywiki/menubar/config-TableOfContentsTag.tid b/plugins/tiddlywiki/menubar/config-TableOfContentsTag.tid new file mode 100644 index 000000000..4469a9b26 --- /dev/null +++ b/plugins/tiddlywiki/menubar/config-TableOfContentsTag.tid @@ -0,0 +1,2 @@ +title: $:/config/plugins/menubar/TableOfContents/Tag +text: TableOfContents diff --git a/plugins/tiddlywiki/menubar/config.tid b/plugins/tiddlywiki/menubar/config.tid index 9b564ee68..abcb8fcea 100644 --- a/plugins/tiddlywiki/menubar/config.tid +++ b/plugins/tiddlywiki/menubar/config.tid @@ -26,6 +26,12 @@ The breakpoint position between narrow and wide screens. Should include CSS unit <$edit-text tiddler="$:/config/plugins/menubar/breakpoint" default="" tag="input"/> +!! Contents Tag + +The tag for the ~TableOfContents used in the Contents dropdown + +<$edit-text tiddler="$:/config/plugins/menubar/TableOfContents/Tag" default="" tag="input"/> + !! Menu Bar Colours To change the colour of the menu bar, define the colours `menubar-foreground` and `menubar-background` in the currently selected palette diff --git a/plugins/tiddlywiki/menubar/items/contents.tid b/plugins/tiddlywiki/menubar/items/contents.tid index 5753679eb..f4fbdb2c2 100644 --- a/plugins/tiddlywiki/menubar/items/contents.tid +++ b/plugins/tiddlywiki/menubar/items/contents.tid @@ -6,6 +6,6 @@ tags: $:/tags/MenuBar
-<> +<$macrocall $name="toc-selective-expandable" tag={{$:/config/plugins/menubar/TableOfContents/Tag}}/>