From 701e963fd421dbfb8858e724ebd6c25cb2aad078 Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Thu, 27 Nov 2025 18:26:32 +0800 Subject: [PATCH] Create #9466.tid --- .../tw5.com/tiddlers/releasenotes/5.4.0/#9466.tid | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 editions/tw5.com/tiddlers/releasenotes/5.4.0/#9466.tid diff --git a/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9466.tid b/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9466.tid new file mode 100644 index 000000000..2a661ceb9 --- /dev/null +++ b/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9466.tid @@ -0,0 +1,15 @@ +title: $:/changenotes/5.4.0/#9466 +description: ViewToolbar buttons now support condition field +tags: $:/tags/ChangeNote +release: 5.4.0 +change-type: feature +change-category: hackability +github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9466 +github-contributors: linonetwo + +ViewToolbar buttons can now be conditionally displayed based on the currentTiddler using a `condition` field. Similar to how `$:/tags/Exporter` and `$:/tags/EditorTools` already have. An example would be: + +```tid +tags: $:/tags/ViewToolbar +condition: [type[text/x-markdown]] [type[text/markdown]] +```