Erratum : 

<$button>
<$list filter="[list[DefaultTiddlers]]">
<$action-navigate/>
</$list>
Open all
</$button> 

No need to specify a target to the action navigate widget, it default to 
the current tiddler. Also I got the variable wrong, its <<currentTiddler>> 
and not <<tiddler>>.
More info here : https://tiddlywiki.com/#ListWidget
On Thursday, 5 May 2022 at 18:34:18 UTC+2 Télumire wrote:

> There is no "tm-open-all-tiddlers" message. See the list : 
> https://tiddlywiki.com/#Messages
>
> What you can do is use a list widget inside of a button widget, and loop 
> trough a list of tiddler to open, then use an action-navigate widget to 
> open each one. Assuming your list is in the list field of a tiddler named 
> "DefaultTiddlers" :
>
> <$button>
> <$list filter="[list[DefaultTiddlers]]">
> <$action-navigate $to=<<tiddler>>/>
> </$list>
> Open all
> </$button>
>
>
> You can also use a use a link to do that :
>
> <a href="#:[list[DefaultTiddlers]]"> Open all </a> 
>
> But this will close tiddlers that already are in the story. To prevent 
> that, use this :
>
> <a href="#:[list[$:/StoryList]] [list[DefaultTiddlers]]">Click to add the 
> default tiddlers bellow the story</a>
>
> or 
>
> <a href="#:[list[DefaultTiddlers]] [list[$:/StoryList]]"> Click to add the 
> default tiddlers above the story </a>
>
> If you want your link to look like a button : 
>
> <a href="#:[list[DefaultTiddlers]] [list[$:/StoryList]]"><$button> Click 
> to add the default tiddlers above the story</$button> </a> 
>
>
> This is shorter than a list widget, but this will modify the url.
>
> On Thursday, 5 May 2022 at 16:16:29 UTC+2 [email protected] wrote:
>
>> Hi All,
>>
>> I have added an Open All button to the Page Toolbar with a message 
>> attribute equal to tm-open-all-tiddlers.  Now, I need help getting the 
>> button to actually work.  What I want to do  when the button is clicked is 
>> go through all of the Default Tiddlers and add them to the Story River.  
>> Thanks in advance for input.
>>
>> --Robert
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4363b924-1492-4cd7-ac56-2a312ad8c4dbn%40googlegroups.com.

Reply via email to