Page 1 of 1

open page and tree shows position

Posted: 23 Dec 2005, 20:09
by Belinda
Hello Hans,

Before I start to use this nice tree menu, I have a question:

Is it possible to surf to a page, and then see in the tree where you are?
So for instance, I would link to the topic "Telescope" from another website, and the tree would collapse: Projects > Plants > Big Storage > Digester ??
I hope you understand what I mean.

Thanks in advance for your time.

greetings,

Belinda

Selecting an item

Posted: 24 Dec 2005, 09:09
by Hans
Hi Belinda,

it's very easy to adjust the selection in the tree according to the page actually loaded in the main-frame. You only have to include the path to 'js/default.js' in the header of the page and call the routine 'loaded(document)' when the page is loaded. With this routine the page registeres within the treemenu and selects the appropriate menu-item having the same path as the loaded document.

The procedure is described in the help-files of TreeMenu -> First steps -> Select item. When activating 'autoclose' for the tree, also the subtree you left will be closed.

Does this answer your question? I hope TreeMenu will satisfy your wishes.

Hans Bauer

thanks

Posted: 24 Dec 2005, 12:08
by Guest
Hello Hans,

Thank you for answering, and yes, your answer was exactly what I hoped to hear. :)

Cheers,

Belinda