Outlook style.... Need help defining styles and menus

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Brannmark
Super Advanced
Super Advanced
Posts: 31
Joined: Mon Aug 25, 2003 4:33 pm

Outlook style.... Need help defining styles and menus

Post by Brannmark »

I want to create an outlook style menu. When I click on one of the "main" menu items it should open a treemenu like in the image. Can someone help me out on how to achive this with milonic and the treemenu addon?


Image
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

People would need the images in order to help you with something like that. So you'd have to put them someplace they could get all those images.

Ruth
Brannmark
Super Advanced
Super Advanced
Posts: 31
Joined: Mon Aug 25, 2003 4:33 pm

Post by Brannmark »

I dont need a finished "style", but rather a exampel on how I coul achive this.

Been testing some, and the buttons in the bottom is set relative into a td. But I need to setup the "tree" menu above to relative also, as I dont know the exact position. If I dont set the tree menu to relative it works great. But when I set the parent tree menu to relative it doesnt work..
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

as far as I remember, the relative positioning of the treemenu should not be implemented in the same way as it is suggested for the "table based menu".
Try to put the entire menu into the <td> (not only the main menu), but of course using - position="relative"; - .

Michael
Brannmark
Super Advanced
Super Advanced
Posts: 31
Joined: Mon Aug 25, 2003 4:33 pm

Post by Brannmark »

Got it to work, expanding and closing trees good. But when I use the openbyurl script to "remember" what menus that where open, it expands all tree menus, even if the nodes where closed...
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

global setting in treemenu_data.js

Code: Select all

singleMasterMenu=true; //have one menu open at a time

order of js-references:

<script type="text/javascript" language="JavaScript" src="treemenu.js"></script>
<script type="text/javascript" src="openmenusbyurl.js"></script>
<script type="text/javascript" language="JavaScript" src="treemenu_data.js"></script>

Please see:
http://milonic.com/treemenu/


Michael
Brannmark
Super Advanced
Super Advanced
Posts: 31
Joined: Mon Aug 25, 2003 4:33 pm

Post by Brannmark »

Ok, now I found what caused that problem. Cant use the same "page" on the two nodes, as then it expands all nodes with that "page" name, is that correctly understood?
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

if you mean with "page" = url, I think so, its correct.

Michael
Brannmark
Super Advanced
Super Advanced
Posts: 31
Joined: Mon Aug 25, 2003 4:33 pm

Post by Brannmark »

Yepp, seams to be that. As now it works great when I put diffrent pages in all urls...

Would this mean I could have problems with a page that has querystings, or does the openmenusbyurl grab the whole page name including querystrings?
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

find out by testing please, got some experience with the treemenu, but not really indepth and not at all with the source, just user of "my" datafile. in this case.

Michael
Brannmark
Super Advanced
Super Advanced
Posts: 31
Joined: Mon Aug 25, 2003 4:33 pm

Post by Brannmark »

Seams to work with querystrings, so the page could have the same name, if the querystring for the "menus" are diffrent
Brannmark
Super Advanced
Super Advanced
Posts: 31
Joined: Mon Aug 25, 2003 4:33 pm

Post by Brannmark »

Any way to keep all opened nodes in a treemenu open? the openmenusbyurl will keep the clicked node open.

Like this:

Parent Node1
____sub node 1
Parent node2
____sub node2

If I click sub node2, Parent node1 closes, and parent node2 opens like it should. But what if I would like to keep the parent node1 open also?
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

please study the samples

http://milonic.com/treemenu/

particularly

http://milonic.com/treemenu/tree/
and click there open all - close all

If you look into the html source you find the relevant functions and you can download the relevant treemenu_data.js. (by manually entering the url into your browsers addres field, you will know that.)

Michael
Post Reply