For the first part of your question, wrapping it with a set widget, like

<$set name=mylist filter="[tag[mytag]]">

<$button> <$action-setfield list=<<mylist>>/>Set List </$button>
</$set>

Good luck,
Mark

On Thursday, August 3, 2017 at 10:43:51 AM UTC-7, Vayu Asura wrote:
>
> When I try this:
>
> <$button> <$action-setfield list={{{[tag[mytag]]}}}/>Set List </$button>
>
>
> I get the first list item into list field. Is there a way I can get all 
> the titles into list field? I need it for next[] and previous[] operators. 
> They require hard-coded list field to work properly, I'm looking for a way 
> to at least generate this hard coded value. 
>
> As for what I need it for, I've made this little monster to navigate 
> between ToC chapters sequentially. 
>
> It requires all the chapters to be in the list field of the tiddler it's 
> called from. 
>
> Haven't found any complete solution so built one myself. If there is a 
> more reasonable way to do it esp without hard-coded lists, I'm very open to 
> suggestions. 
>
> $sel$ is the state tiddler for ToC selection (current item variable for 
> all intents and purposes...), the reveals hide navigation when no item is 
> selected - have tried to monitor filter state to hide when there is no next 
> or prev item but couldnt bind it to current $sel$ tiddler value correctly.
>
> \define TocNav(sel:"TovTest")
>
>
> <$set name=selection value=$sel$>
> <$set name=selectionValue value={{$sel$}}>
>
>
> <!-- Debug
>
>
> $sel$
>
>
> <<selection>>
>
>
> <<selectionValue>>
>
>
> selection prev: {{{[<selectionValue>previous<currentTiddler>]}}}
>
>
> <<selectionValue>>
>
>
> selection next: {{{[<selectionValue>next<currentTiddler>]}}}
>
>
> Debug !--->
>
>
> <$reveal type="nomatch" state=<<selection>> text="">
> <div>
> <$button>
> <$action-setfield $tiddler=<<selection>> text={{{[<selectionValue>previous
> <currentTiddler>]}}} />
> <$action-navigate $to=<<currentTiddler>>/>
> {{$:/core/images/chevron-left}}
> </$button>
>
>
> <$button><$action-navigate $to=<<currentTiddler>>/>{{$:/core/images/
> chevron-up}}
> </$button>
>
>
> <$button>
> <$action-setfield $tiddler=<<selection>> 
> text={{{[<selectionValue>next<currentTiddler>]}}} />
> <$action-navigate $to=<<currentTiddler>>/>
> {{$:/core/images/chevron-right}}</$button>
> </div>
>
>
> </$reveal>
>
>
> </$set>
> </$set>
>
>
> \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/1e89cbcd-a66c-4de7-a0c6-d6a4ef7e3304%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to