Tidgraph question

235 views
Skip to first unread message

Ste Wilson

unread,
Oct 7, 2017, 12:57:01 PM10/7/17
to TiddlyWiki
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.

TonyM

unread,
Oct 7, 2017, 8:43:23 PM10/7/17
to TiddlyWiki
Ste,

Thanks for introducing me to this nice tool. Using it on the TableOfContents is great because it is quite compact.

I tried the developer tools in FireFox to see if I could find what expands and collapses things with no luck.

Regards
Tony

Ste Wilson

unread,
Oct 8, 2017, 2:27:01 PM10/8/17
to TiddlyWiki
Glad you have found it
I like it :)

Might see if I can drop a linen to the author...

TonyM

unread,
Oct 8, 2017, 7:29:30 PM10/8/17
to TiddlyWiki
For those who pass here later; here is a directory I have created using Tidgraph, just to give you an idea.

Auto Generated Inline Image 1

Pit.W.

unread,
Oct 9, 2017, 6:39:40 AM10/9/17
to tiddl...@googlegroups.com

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

magasine

unread,
Oct 10, 2017, 1:40:10 PM10/10/17
to TiddlyWiki

Hello

I chose to create a template that I called "Template - MindMap" with the following information:

!! {{!! summary}}
<$ button>
<$ action-navigate $ to = "Menu" />
Menu
</ $ button>
<$ button set = !! setto = "S"> {{$: /
core / images / chevron-down}} </ $ button>
<$ button set = !! </
setup> </ script>
<$ button set = !! maxdepth setTo = "- 1"> Min </
$ button>
<$ button set = !! maxdepth setTo = "1"> 1 </ $ button>
<$ button set = !! maxdepth setTo = "2"> 2 </
$ button>
<$ button set = !! maxdepth setTo = "3"> 3 </ $ button>
<$ button set = !! maxdepth setTo = "10"> Max </
$ button>
^^ @@ color: gray; ({{!! !! maxdepth}}) @@ ^^


<$ tidgraph start = {{title}} maxdepth = {{!! maxdepth}} layout = {{!! layout}}


For rendering, create any tiddler with a tag name and place the transclusion statement in the body:

{{|| Template - MindMap}}


and also the following fields:

maxdepth = 2
layout
= E
summary
= abc


Greetings

Alex Hough

unread,
Oct 11, 2017, 4:11:52 AM10/11/17
to TiddlyWiki
Hi Magasine,

that look great!

could you post a tiddler?
When I copy the code above there are various spaces... i can't get it to work:(


Alex

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/d04b8cc0-7dce-4913-b3ad-5ebb49ade932%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

magasine

unread,
Oct 11, 2017, 6:55:30 AM10/11/17
to TiddlyWiki
Hi Alex,

Tiddlers posted

greetings
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 https://groups.google.com/group/tiddlywiki.
Template - MindMap.tid
Comunicações.tid
Reply all
Reply to author
Forward
0 new messages