Second thought have made me delete template2 - Now only one template
is needed: "TopicsTemplate":
Here I have made the changes: 
http://dl.getdropbox.com/u/1064531/DeskTree/NoteStorm1template.html

I rewrote the line in the TopicsViewTemplate:
"<span macro='tiddler TopicsTemplate2'></span>"
to:
<span macro='tiddler TopicsTemplate with: {{tiddler.title}}'></span>

Now it works in the TopicsViewtemplate *and* in the mainmenu
(<forEachTiddler where 'tiddler.tags.contains("Topics")' write
 '"<<tiddler TopicsTemplate with: [["+tiddler.title+"]]$))"'>> )

The "trick" tagging a tiddler  titled Topics with closed - *only*
works when your browser doesn't remember cookies (Google Chrome for
instance)
If you want the tree to open as folded(closed) in next session (in FF
w cookies) - then you'll have to close *one* of the branches - when
you refresh or update the browser or just the display - all branches
will be closed.
This is because they all share a common id "Topics" ...

Regards Måns Mårtensson



On 26 Sep., 01:56, "Dave Gifford - http://www.giffmex.org/";
<[email protected]> wrote:
> Hi all,
>
> I really want the Treeview index in NoteStorm to be collapsed by
> default whenever I open the file. But currently the opposite is true,
> even though the macros in TopicsTemplate1 and 2 are "collapsed: true."
>
> Can someone who knows more about the options for Treeview give me the
> code necessary to force NoteStorm's treeview menu closed until I
> manually open it?
>
> Also (question for Mans), why is there a TopicsTemplate1 and a
> TopicsTemplate2? Is the first one made unnecessary by the second one?
> Or are both needed?
>
> Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to