1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 17:40:29 +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

View File

@ -0,0 +1,2 @@
title: $:/config/AutoStartTour
text: yes

View File

@ -0,0 +1,2 @@
title: $:/config/AutoStartTour
text: no

View File

@ -0,0 +1,2 @@
title: $:/config/ShowTour
text: hide

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. but rather use the appropriate procedure to ensure that all the associated actions are performed.
$:/config/CurrentTour: title of current tour definition tiddler $:/config/CurrentTour: title of current tour definition tiddler
$:/config/ShowTour: "show" (default) or "hide"
$:/state/tour/step: title of current step of the tour $:/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: Tour definition tiddlers have the following fields:
tags: must include $:/tags/Tour tags: must include $:/tags/Tour

View File

@ -1,4 +1,9 @@
title: $:/plugins/tiddlywiki/tour/startup-actions title: $:/plugins/tiddlywiki/tour/startup-actions
tags: $:/tags/StartupAction 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>> <<tour-restart>>
</$list>