Help talk:Tree format

Jump to: navigation, search


Thread titleRepliesLast modified
Limit Depth008:49, 13 September 2016
SRF Tree fails in combination TreeAndMenu Extension and template120:07, 12 December 2014
Tree format and subobjects - link to parents doesn't work013:54, 3 September 2014
sep seems not to work for tree format612:49, 27 August 2013

Limit Depth

Can the depth of the tree be limited?

Alexander Mashintalk08:49, 13 September 2016

SRF Tree fails in combination TreeAndMenu Extension and template

The following tree works as expected

{{#ask:[[Category:Process]][[Is Part Of::+]]
   |parent=Is Part Of

When adding a template= parameter, the first tree item is rendered outside the TreeAndMenu structure

{{#ask:[[Category:Process]][[Is Part Of::+]]
   |parent=Is Part Of

The SrfProcessTree template is a simple {{{1}}}

SMW 1.8.x, MW 1.19.x, SRF 1.8/latest SRF_tree.php from git

Can someone confirm that?

Planetenxin (talk)19:45, 12 December 2014

Can't confirm, but what happens if you try it like this:

{{#ask:[[Category:Process]][[Is Part Of::+]]
   |parent=Is Part Of
F.trott (talk)20:07, 12 December 2014

Tree format and subobjects - link to parents doesn't work

Hi all,

I stumbled upon a problem with the tree format, perhaps somebody here can help me. I use MW 1.23.2, SMW 2.0 and SRF 1.9 alpha.

As an example, I store locations in my wiki. For locations with a lot of information, I create a page, for locations with only some semantic data, I only create a subobject. The sematic attributes are the same for both. Both have the attributes "name is" and "located in".

I'd like to use the tree format to display a hierarchy of the places. I use the following query:

{{#ask: [[name is::+]] | ?name is | format=tree | parent=located in }}

All locations are found and listed, regardless if its only a subobject or not. However, the link with "located in" doesn't work with subobjects: If the parent is a subobject, its children are not listed below it. Is there any way to fix this?

Thanks in advance for your support!

Tobias.r (talk)11:43, 28 August 2014

sep seems not to work for tree format

Hi everyone,

using the tree format with SRF 1.7.1, I get results like this:

So the properties printed in the brackets are not separated at all. I tried to use the parameter


but it did not prove to have any effect.

Is this a bug or a case of misconfiguration? Any help appreciated!

PS I can see a bunch of fantastic new formats having come with SRF 1.8, really looking forward to using them. Thanks to all contributors!

Argi (talk)12:46, 19 December 2012

So far I have not used this result format though I am looking forward to. Hmm, just by looking at the documentation it should work to get a separator in there somehow. Did you just try |sep=, to see what happens?

[[kgh]] (talk)03:15, 20 December 2012

Hi kgh,

sorry for the late reply. Of course I tried, as mentioned above.

Kind regards

Argi (talk)18:02, 1 February 2013

Heiya Argi, cool that this worked out for you. :) Cheers

[[kgh]] (talk)23:00, 1 February 2013

Hi Argi, I reworked the treeview format lately. I did not specifically target this bug, but it could well have been solved in the process. Could you try if it works in the latest development version of SRF and if not raise a bug in [1]?

F.trott (talk)22:25, 13 May 2013

Hi F.trott,

due to a change in employment I do not have access to the installation anymore and thus cannot validate a fix. Next time I set up a wiki using it, I will take a look. Still, I cannot say when this is about to be. ;ö)

Thanks and regards


Argi (talk)22:56, 11 June 2013

Everything qorking fine with MW 1.21 and SMW :)



Argi (talk)12:49, 27 August 2013