PageTree: showRoot?
Forum » Help / Editing pages » PageTree: showRoot?
started by: derwischderwisch
on: 1210259746|%e %b %Y, %H:%M %Z|agohover
number of posts: 2
rss icon RSS: new posts
summary:
showRoot="false" does not do what I expect it to
PageTree: showRoot?
derwischderwisch 1210259746|%e %b %Y, %H:%M %Z|agohover

Consider for instance the Data Entry page. I would expect the PageTree under "Gliederung" not contain the page itself, as the showRoot attribute is set to "false". Yet it is contained.

Could you tell me what I have to change in order not to see the current node?

unfold PageTree: showRoot? by derwischderwisch, 1210259746|%e %b %Y, %H:%M %Z|agohover
Re: PageTree: showRoot?
ErichSteinboeckErichSteinboeck 1210265472|%e %b %Y, %H:%M %Z|agohover

Unfortunately the implementation for PageTree (and most other modules) was done in a way such that for true/false parameters any value (except the empty string) is taken to be “true”. The only way to specify “false” is to omit the parameter or specify parameter="".

The PageTree documentation (and again, the documentation for most other modules, too) is simply wrong in specifying that the default value for showRoot is “false”.

So — omit “showRoot” and things will work as you expect.

unfold Re: PageTree: showRoot? by ErichSteinboeckErichSteinboeck, 1210265472|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.