1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-06-04 19:52:18 +00:00

Tour should autostart in the tour edition, but not in the main wiki

This commit is contained in:
Jeremy Ruston
2023-09-10 18:27:01 +01:00
parent 06af391773
commit 4792d241c4
5 changed files with 16 additions and 1 deletions
@@ -0,0 +1,2 @@
title: $:/config/AutoStartTour
text: no
@@ -0,0 +1,2 @@
title: $:/config/ShowTour
text: hide
+5 -1
View File
@@ -7,9 +7,13 @@ The following state tiddlers control the tour. They should not be directly modif
but rather use the appropriate procedure to ensure that all the associated actions are performed.
$:/config/CurrentTour: title of current tour definition tiddler
$:/config/ShowTour: "show" (default) or "hide"
$:/state/tour/step: title of current step of the tour
These config tiddlers may be changed directly as required:
$:/config/ShowTour: "show" (default) or "hide"
$:/config/AutoStartTour: "no" (default) or "yes"
Tour definition tiddlers have the following fields:
tags: must include $:/tags/Tour
@@ -1,4 +1,9 @@
title: $:/plugins/tiddlywiki/tour/startup-actions
tags: $:/tags/StartupAction
\import [subfilter{$:/core/config/GlobalImportFilter}]
<$action-log message="Outside"/>
<$list filter="[[$:/config/AutoStartTour]get[text]else[no]match[yes]]" variable="ignore">
<$action-log message="Inside"/>
<<tour-restart>>
</$list>