Talk:Tree view

From Organic Design wiki
Revision as of 22:39, 7 March 2007 by Nad (talk | contribs) (seems to be almost working)

I am struggling with your installation instructions for Tree View. I inserted the tree-view.php code directly in LocalSetting.php; however, the images do not display and the tree contracts but does not subsequently expand. Please advise.

Can you give me the url to have a look? it's only been tested on 1.6.7, and that's a bit of a weird bug which I have no idea how to fix without seeing it for myself... --Nad 20:59, 7 Mar 2007 (NZST)
Also, have you got the latest code - I was doing a lot of work on it last night to get them to work recursively, maybe you installed it part way through my changes? --Nad 21:01, 7 Mar 2007 (NZST)

Here is the URL, http://www.infonomx8.com/mediawiki/index.php/Treeview; when I inserted the wrapper code in LocalSetting.php, I received an error stating that new Article() constructor could not be instantiated. I removed the entire wrapper code and the yield is what you see at http://www.infonomx8.com/mediawiki/index.php/Treeview. For your second concern: I used the code available within the your article Treeview.php as of today (Houston TX CST 1:00 pm).
Also, concerning the images. I manually setup the directory structure as indicated within your php code and then I uploaded the folders and your images via FrontPage. My directory structure necessitated that I change your /wiki/images... to /mediawiki/images...

There shouldn't be any wrapper code, just an include of the code - and the code should be MediaWiki treeview.php, not tree-view.php which is specific to this wiki. --Nad 21:57, 7 Mar 2007 (NZST)
Your treeview seems to be almost working, the main problems is that the image paths haven't been set, just set the array of images in the line before including the treeview code so it doesn't resort to the defaults. Theer's another problem because the depth attrributes aren't correct, but it'll be easier to see what's going on if the images are working first. --Nad 22:39, 7 Mar 2007 (NZST)