<$button><$list filter="[tag[$:/TOC]]"><$action-sendmessage $message="tm-close-tiddler"/></$list>close all tagged $:/TOC</$button>
<$button>
<$list filter="[tag[$:/TOC]]">
<$action-deletetiddler $tiddler=<<currentTiddler>>/>
</$list>
empty TOC
</$button>
<$list filter="[tag[$:/TOC]]">
<$action-sendmessage $message="tm-close-other-tiddlers"/></$list>
Thank you Tobias! And is it posiible to make operation
<$list filter="[tag[$:/TOC]]"><$action-sendmessage $message="tm-close-other-tiddlers"/></$list>
...every time when any tiddler opening?
For example, can I put this code to $:/core/modules/storyviews/zoomin.js ?
I put 1000 goods to my experimental tw5-shop http://novye-podarki.ru/heeg1000.html and it works slow if dom tree grows. So I want to remove branches I don't use.
воскресенье, 11 октября 2015 г., 13:24:38 UTC+3 пользователь Danielo Rodríguez написал:
El domingo, 11 de octubre de 2015, 11:45:14 (UTC+2), Siniy-Kit escribió:Please be aware that this does not makes any sense. You will close all the tiddlers except one on the first iteration of the list, then you will close that tiddler when the second tiddler on the list calls the "close others"
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/adcf5756-c96c-4bb2-af9d-5d8af746120b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
you're right :( tm-close-other-tiddlers close all except one. And is it possible to close other tiddlers by the tag? And do this action every time, when any tiddler is open?I put 1000 goods to my experimental tw5-shop http://novye-podarki.ru/heeg1000.html and it works slow if dom tree grows. So I want to remove branches I don't use.
Since when is this possible? The last time I checked was not possible to use action widgets inside list widgets.
if(self.currentTiddlerDomNode !== prevCurrentTiddler) {
prevCurrentTiddler.style.display = "none";
}
I think the best solution for single tiddler applications like this is to adopt a new story mechanism, where instead of having a list of tiddlers making up the story, there is a single tiddler. Navigation simple replaces that tiddler.
Hi Siniy-Kit,
Hi, Tobias. I understood what you mean. I deleted opened tiddler from DOM, and then I try to open it again I saw an empty screen, because navigator.js try to find it in history and make display:block;, but don't find it. if I don't want to modify core, is it possible to put a little script to the top of the tiddler and to run it when tiddler is opened?and I want to close all tiddlers except current [tag[$:/TOC]!is[current]]
<ul>
<$list filter="[tag[TableOfContents]]">
<li><$button set="$:/StoryList!!list" setTo=<<currentTiddler>> class="tc-btn-invisible">
{{!!title}}
</$button></li>
</$list>
</ul>
\define current() [[$(currentTiddler)$]]
<ul>
<$list filter="[tag[TableOfContents]]">
<li><$button set="$:/StoryList!!list" setTo=<<current>> class="tc-btn-invisible">
<$view field="title"/>
</$button></li>
</$list>
</ul>
<$button set="$:/StoryList!!list" setTo={{$:/HistoryList!!current-tiddler}}>
Clear All Tiddlers Except Current Tiddler
</$button>
\define stringify() [[$(string)$]]
<$set name="string" value= {{$:/HistoryList!!current-tiddler}}>
<$button set="$:/StoryList!!list" setTo=<<stringify>>>
Clear All Tiddlers Except Current Tiddler
</$button></$set>
<$button class="tc-btn-invisible"><$list filter="[tag[$:/TOC]]"><$action-sendmessage $message="tm-close-tiddler"/></$list><$action-navigate $to=<<currentTiddler>> /> <$view field="title"/> </$button>
I don't know how to make it faster.
<$button class="tc-btn-invisible"><$list filter="[list[$:/StoryList!!list]tag[$:/TOC]]">
<$action-sendmessage $message="tm-close-tiddler"/></$list><$action-navigate $to=<<currentTiddler>> /><$view field="title"/></$button>
<<currentTiddler>>
<
<currentTiddler>>