I'm not even sure I'm asking the right question:
I have two slideshow macros that invoke a slideshow, and then return to the
regular wiki. The slideshow macro changes theme, tags a few buttons so
they become visible in view template, and then launches the slideshow with
all tiddlers matching the specified tag. The slideshow is supposed to end
with a tiddler that has a "Return to Wiki" button, that invokes the
endslideshow macro, changing the theme back, untagging the buttons.
The trouble I am having is that I add the tag to the "end slide show"
tiddler, but of course it hasn't saved back to the wiki, so that my list
filter doesn't capture it, and I never get the end button.
Is there a command I can use that will save the wiki before I call the list
filter?
Thanks,
//steve.
(oh, and perhaps someone can explain the benefit/cost of using
action-setfield v. action-listops...)
\define slideshow(slidetag)
<$set name="slidetag" value="$slidetag$">
<$button set="$:/state/sidebar" setTo="no"
tooltip={{$:/language/Buttons/HideSideBar/Hint}}
aria-label={{$:/language/Buttons/HideSideBar/Caption}} >
<$action-sendmessage $message="tm-close-all-tiddlers"/>
<$action-setfield $tiddler="$:/theme" text="$:/themes/tiddlywiki/punch"/>
<$action-setfield $tiddler="$:/core/ui/ViewTemplate/next"
tags="$:/tags/ViewTemplate"/>
<$action-setfield $tiddler="$:/core/ui/ViewTemplate/prev"
tags="$:/tags/ViewTemplate"/>
<$action-listops $tiddler="ZZZEndSlides" $field="tags"
$subfilter=$slidetag$/>
<$list filter="[tag<slidetag>!sort[]]">
<$action-navigate $to=<<currentTiddler>> />
</$list>
View Slides tagged with <<slidetag>>
</$button>
</$set>
\end
\define endslideshow()
<$button set="$:/state/sidebar" setTo="yes">
<$action-setfield $tiddler="$:/theme" text="$:/themes/tiddlywiki/heavier"/>
<$action-listops $tiddler="$:/core/ui/ViewTemplate/next" $field="tags"
$filter="[[]]"/>
<$action-listops $tiddler="$:/core/ui/ViewTemplate/prev" $field="tags"
$filter="[[]]"/>
<$action-listops $tiddler="ZZZEndSlides" $field="tags" $filter="[[]]"/>
<$action-sendmessage $message="tm-close-all-tiddlers"/>
<$action-navigate $to="HelloThere"/>
Return to the wiki
</$button>
\end
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/14871277-24e2-4852-b4e4-27e82cdd1d33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.