Extension talk:Treeview4.php

From Organic Design wiki
Info.svg This talk page pertains specifically to the development of this extension. For more general discussion about bugs and usage etc, please refer to the mediawiki.org talk page at MW:Extension talk:Tree view

Images

We need to be able to supply images in the tree rows if they are to differ from the defaults defined in LocalSettings.php. A parser function could be used which can have one or two images (for opened and closed states). The PHP rendering needs to encode the image path into the JS environment either in a separate array, or within the tree attributes.

Also, better support for SVG would be good where a tree can have its px size specified separately and the scaled version requested in the rendered image paths.

Persistent state

As nodes are opened and closed, the state of that particular node is written to document.cookie but needs an id which is specific to that tree content (not the GUID which unique for every instance of the same tree). This is probably best just done from supplying an id attribute in the initial tree statement for trees which should hold their state.

The PHP rendering needs to account for any open nodes in the session too.

Interesting bugs

You're gonna love this! I just looked at an old example using this url. Ok the blog skin is broken - but ignore that for the moment. What I got was this.

Tree-view-with-little-benders.png

WTF!!?? blank.gif seems to have become a bender. --Rob 15:24, 19 September 2007 (NZST)


Every now and then I see some funny things happening with treeview.

Treeview-double-icons.png

I observed this on Mac using Camino browser (mozilla family, gecko engine).

--Rob 15:12, 19 September 2007 (NZST)

Brilliant! that's got to be my favourite bug ever ;-) --Nad 17:34, 19 September 2007 (NZST)