Hi

With single tiddler navigation thrown in (and the superfluous $view widget 
removed) -- the code will look like this:

<$set name="before" 
filter="[list[lists!!list]last[]][list[lists!!list]before{!!title}]+[last[]]">
<$set name="after" 
filter="[list[lists!!list]after{!!title}][list[lists!!list]first[]]+[first[]]">
<$button set="$:/StoryList!!list" setTo=<<before>>>Before</$button>
<$button set="$:/StoryList!!list" setTo=<<after>>>After</$button>
</$set></$set>

regards

On Monday, 19 October 2015 18:58:19 UTC+2, Matabele wrote:
>
> Hi
>
> If you want the list to roll around at the ends -- use this code instead 
> (need this only in the first and last tiddlers in the chain, but can use 
> this same code in all of the tiddlers):
>
> <$set name="before" 
> filter="[list[lists!!list]last[]][list[lists!!list]before{!!title}]+[last[]]">
> <$set name="after" 
> filter="[list[lists!!list]after{!!title}][list[lists!!list]first[]]+[first[]]">
> <$button set="lists!!target" setTo=<<before>>>Before</$button>
> <$button set="lists!!target" setTo=<<after>>>After</$button>
> </$set></$set>
>
> <$view tiddler="lists" field="target"/>
>
> regards
>
> On Monday, 19 October 2015 17:05:11 UTC+2, Matabele wrote:
>>
>> Hi
>>
>> If it's a kind of slideshow you're after, you can walk along a chain of 
>> titles in a list. Put this code in each tiddler in the chain:
>>
>> <$set name="before" filter="[list[lists!!list]before{!!title}]">
>> <$set name="after" filter="[list[lists!!list]after{!!title}]">
>> <$button set="lists!!target" setTo=<<before>>>Before</$button>
>> <$button set="lists!!target" setTo=<<after>>>After</$button>
>> </$set></$set>
>>
>> <$view tiddler="lists" field="target"/>
>>
>> -- write a list of the titles of each tiddler in a list somewhere -- 
>> 'lists!!list' for this example
>> -- for this example I have used the field lists!!target as the 'state' 
>> field
>> -- the <$view> widget is to display whats going on
>> -- open a few of the tiddlers and click some buttons to see how this works
>>
>> regards
>>
>> On Monday, 19 October 2015 08:51:22 UTC+2, Andrew wrote:
>>>
>>> Hello again. I'm trying to construct a macro that toggles between 
>>> tiddlers like a chain of buttons. I set it up to save state in a temp file 
>>> because I wanted to be able to clone the tiddler that the button is in and 
>>> have them work independently. I can't seem to figure out how to set the 
>>> field in the temp tiddler to the value in the target field of my second 
>>> button. Here <http://t5a.tiddlyspot.com/#%24%3A%2FMacros%2FToggle> is 
>>> what I have so far. So, the button is supposed to set the state field with 
>>> the name of the tiddler title that I am trying to pass to the macro bit it 
>>> ends up setting it to text "<$view tiddler=<<t>> field="target" />" instead 
>>> of "TagPill1c". Any suggestions welcome?
>>>
>>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8a96e9f8-ffa0-44fb-99d1-5687241bb685%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to