>
> Hi BTC,
>  I have still one problem I could not figure out!
> To synchronize the navigation by shortcut keys and buttons (here links 
> with mouse clicks), I tried to use the state tiddler in the tiddler handles 
> the navigation. Here are the next previous button (links)
>
>
> <div class="eqi-container">
>
>   <div>
>     <$list filter="[all[current]previous[$:/StoryList]]">
>       <$link to={{!!title}}  tooltip="previous: {{!!title}}">
>         <$action-setfield $tiddler="$:/state/presentation-tiddler" 
> text={{!!title}}/>
>         <span>{{$:/.mr/tiddlyshow/circle-left}}</span>
>       </$link>
>     </$list>
>   </div>
>
>   <div>
>        <span class="pagenumber">{{!!page}}</span>
>   </div>   
>
>   <div>
>     <$list filter="[all[current]next[$:/StoryList]]">
>       <$link to={{!!title}} tooltip="next: {{!!title}}">
>         <$action-setfield $tiddler="$:/state/presentation-tiddler" 
> text={{!!title}}/>
>         <span>{{$:/.mr/tiddlyshow/circle-right}}</span>
>       </$link>
>     </$list>
>   </div>
>
> </div>
>
>
> But it seems the state tiddler ($:/state/presentation-tiddler) is not 
> update. So, the shortcutkeys (alt+Right and alt+Left) actions are not the 
> same as link clicks.
> I mean both of them works but when navigate from same tiddler, the result 
> is different!
>

Yes, the link widget will not trigger the action string. You'll need to 
replace it with a button:

<$button class="tc-btn-invisible" to={{!!title}} 
set="$:/state/presentation-tiddler" setTo={{!!title}} tooltip="yourtip">
{{$:/.mr/tiddlyshow/circle-right}}
</$button>

 

>
> One more question: If I start navigation from middle of story river, the 
> button works fine because they navigate from the current tiddler, but I 
> dont know how to tell this to Shortcutkeys tiddler (i.e. next-slide, 
> previous-slide).
>
>
That's why we use the $:/state/presentation-tiddler to save the currently 
viewed tiddler. So in the shortcuts you get it by:

{{$:/state/presentation-tiddler}}

... like:

<$navigator story="$:/StoryList" history="$:/HistoryList">
<$list filter="[{$:/state/presentation-tiddler}next[$:/StoryList]]">
<$action-sendmessage $message="tm-navigate"/>
</$list>
</$navigator>

If you start your presentation from a different tiddler than the first one, 
you'll need to set the text of $:/state/presentation-tiddler to that 
tiddler 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/72e29961-f950-43f0-8e0d-a479e84a1653%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to