mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
Tour should autostart in the tour edition, but not in the main wiki
This commit is contained in:
parent
06af391773
commit
4792d241c4
2
editions/tour/tiddlers/System/configAutoStartTour.tid
Normal file
2
editions/tour/tiddlers/System/configAutoStartTour.tid
Normal file
@ -0,0 +1,2 @@
|
||||
title: $:/config/AutoStartTour
|
||||
text: yes
|
2
plugins/tiddlywiki/tour/config-AutoStartTour.tid
Normal file
2
plugins/tiddlywiki/tour/config-AutoStartTour.tid
Normal file
@ -0,0 +1,2 @@
|
||||
title: $:/config/AutoStartTour
|
||||
text: no
|
2
plugins/tiddlywiki/tour/config-ShowTour.tid
Normal file
2
plugins/tiddlywiki/tour/config-ShowTour.tid
Normal file
@ -0,0 +1,2 @@
|
||||
title: $:/config/ShowTour
|
||||
text: hide
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user