Hello Ste,

I have something which is a workaround; but it has some risks:so test it in a sandbox which you can throw way


My workaround

    1. The tiddler calls tidgraph like this:
        1.              <$tidgraph start={{!!title}}
           layout={{!!layout}}  mode={{!!graphmode}}
           maxdepth={{!!maxdepth}} startat={{!!startat}} tooltip="foo
           bar summary  caption" nodetemplate={{!!template}}/>
        2. Note the expressions: maxdepth={{!!maxdepth}}
           startat={{!!startat}}
        3. The values for the two variables are stored in the fields of
           the calling tiddler
        4. There is a conditional view template, which is conditioned:
           <$list filter="[all[current]search[<$tidgraph]]">
            1. In it I have some gadgets to select values for the fields
            2. if I set startat=0 and maxdepth=1, the graph is collapsed
    2. The risk:
        1. If
            1. you use the line 1.1.1,
            2. In a tiddler which does not have the fields
            3. and you have preview mode switched on
        2. the TW crashes, often beyound repair - due to the absence of
           the two fields
    3. Solution:
       Create tiddlers with a tidgraph with a button, from a template,
       which already has the required fieldswith values

Greetings
Pit
Am 2017-10-07 um 18:57 schrieb Ste Wilson:
I use the wonderful tidgraph 
(https://ihm4u.github.io/tw5plugs/#Tidgraph%20-%20Easy%20tiddler%20graphs%20for%20TW5)
 I'm my Wiki.
Quick (hopefully) question. Is it possible to have a default view where the 
graph is collapsed to the first level?

Cheers

Stephen.



--
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/264b980e-2d40-526c-4417-d0adf20a5ab7%40eclipso.ch.
For more options, visit https://groups.google.com/d/optout.

Reply via email to