A small code contains some macros were developed to show subtiddlers here
http://revealgradually.tiddlyspot.com/#Reveal%20Gradually%20-%20Macro:%5B%5BReveal%20Gradually%20-%20Macro%5D%5D
The code is given below
\define nextItem2(parent)
<$set
tiddler=<<currentTiddler>>
field="currentTid"
name=curIndex
emptyValue={{{[tag[$parent$]first[]]}}}
>
<$set
filter={{{[tag[$parent$]after{!!currentTid}]}}}
name=NewIndex
emptyValue=<<curIndex>>
>
<$action-setfield
$tiddler={{!!title}}
currentTid=<<NewIndex>>
/>
</$set>
</$set>
\end
\define previousItem2(parent)
<$set
filter={{{[tag[$parent$]before{!!currentTid}]}}}
name=NewIndex
emptyValue=""
>
<$action-setfield
$tiddler={{!!title}}
currentTid=<<NewIndex>>
/>
</$set>
\end
\define steps2(TagName:"")
<$button actions=<<previousItem2 $TagName$>>>
{{$:/core/images/up-arrow}}
</$button>
<$button actions=<<nextItem2 $TagName$>> >
{{$:/core/images/down-arrow}}
</$button>
<$list filter='[tag[$TagName$]allbefore:include{!!currentTid}]'
variable="myVar">
<h2><$text text=<<myVar>> /></h2>
<blockquote>
<$transclude tiddler=<<myVar>> mode="block"/>
</blockquote>
</$list>
\end
<<steps2 "png">>
*The problem is* when you click on the up/down button in this tiddler and
this tiddler is not the first tiddler in story river, it is scrolled to top
(first tiddler in the story river) and also
the search text box on the sidebar gets focus!
What is wrong with this code?
You can give a try at
http://revealgradually.tiddlyspot.com/#Reveal%20Gradually%20-%20Macro:%5B%5BReveal%20Gradually%20-%20Macro%5D%5D
--
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/deb64615-9888-41ca-88ad-a8330977c69d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.