I have modified PHP TreeMenu (by Bjorge Dijkstra) so that it reads it's data from one field in a database and builds an expandable/collapsable tree menu without using frames. All the other web pages are also stored in the same database.
It works fine as long as I have the php code in a file but when I store it in the database and use it as sidebar (=menu) I cannot get php to pass the url correctly (I plowed both Apache and the php manual but most likely I'm missing something).
I think it's because I end up with 2 (two) ? in the url (one used to call the page and one used by the menu itself) and when changing the ? belonging to the menu it just doesn't work.
It should work (a little simplified) like this:
Expanding or collapsing a menu should
reload the current page from the database and of course exp/coll the menu.
A link should show the chosen record and the state of the menu should be passed.
I generally dislike frames since the visitor usually can't set a bookmark (the are "good frames" though but the CMS I use isn't built that way).
Does anyone have any suggestions?