PDA

View Full Version : Adding a child to a child


JSRooky
10-27-2007, 03:52 AM
Hi everybody,
I need your help please. I downloaded the UDM3 from this site and is already working on my webpage with the submenu and childs, but I want to add a child to a child and I really don't know how to do that. Can anyone please help me with the code?

bcarl314
10-29-2007, 03:52 AM
You might want to check out our udm3 documentation here:

http://www.udm4.com/udm3/

or the faq on udm3 here:

http://www.udm4.com/udm3/faq.html

Otherwise, can you post a link to your site? I may be able to help you if I can see what you've got so far.

JSRooky
10-29-2007, 07:24 PM
Hi bcarl314,
I don't have it on my web page yet because I have made a lot of chances to my menu and there's about 5 submenu options without information yet, so I don't want any visitor to go there and find out that there's nothing there. Can you tell me when can I load the menu so you can see it? Tell me also the exact hour so I can take it out again. Or if you have any email address where I can send you the files also, let me know please.

JSRooky
10-29-2007, 08:02 PM
Hi again bcarl314,
I have loaded the menu until tomorrow, so please if you have time today, give a help with it.
On the menu go to the second option that says Vision and at the end you'll see the option curriculum with a child that says Program & Study. This is where I want to add a child to this Program & Study option.
Can you please help me?
I forgot to post the link to my website: http://www.issosua.com

bcarl314
10-30-2007, 04:03 AM
Hi,

I've taken a look at your site, and unfortunately, the udm3 code base does not support sub-sub menus. I'd recommend upgrading your menu to udm4. The udm4 system uses <ul> / <li> html to allow for unlimited sub menus.

JSRooky
10-30-2007, 01:01 PM
Hi again bcarl314,

Thanks a lot for your help. Is there any documentation for the UDM4, so I can learn how to installed and make it work the way I have it now?
I need to know how to set the position of the bar and color.
And I can't find where the titles of the menus, submenu and childs are.

Admin
10-30-2007, 03:55 PM
There's a good amount of documentation on this site. Some links to get you pointed in the right direction...

Quick Start Guide:
http://www.udm4.com/manual/quickstart/

Downloadable versions of the manual:
http://www.udm4.com/manual/downloads/

Manual pages:
http://www.udm4.com/manual/

Hope this helps.

JSRooky
10-30-2007, 06:55 PM
Hi Admin and thanks for your reply,
I've been searching on the manuals the option to change the position of the menu bar because I want to have it right where I have my bar menu on my web page. Can you please help me on this?

Admin
10-30-2007, 10:22 PM
To position the menu, you can simply add the appropriate HTML where you would like the menu to display. Then in the udm-custom.js file, look for this code:


//navbar orientation
um.orientation = [
"horizontal", // alignment ["vertical"|"horizontal"|"popup"|"expanding"]
"left", // h align ["left"|"right"]
"top", // v align ["top"|"bottom"]
"relative", // positioning ["relative"|"absolute"|"fixed"|"allfixed"]
"0.5em", // x position ["em"|"ex"|"px"|"0"]
"0.5em", // y position ["em"|"ex"|"px"|"0"]
"1000", // z order ["0" to "10000"] (menu takes 20000 headroom)
];


You'll probably want the alignment to be horizontal and the position to be relative.

JSRooky
10-31-2007, 03:47 AM
Hi Admin,
With the UDM3 I think i never had to do the HTML positioning stuff. Can you please send me an example because I'm kind of new on this and what I did with the UDM3 was totaly different.
This is my website in case you want to take a look at it and see where I have my menu right now. That's exactly where I want to position the UDM4.
http://www.issosua.com
One more thing: Do i have to make all the menu changes on every page in my website or there's a dinamically way to do it only by making the change in one file and have all of my pages changed?

vinyl-junkie
10-31-2007, 11:05 AM
Do i have to make all the menu changes on every page in my website or there's a dinamically way to do it only by making the change in one file and have all of my pages changed?
If your website supports PHP, you can use a PHP include statement on each page in the position where you want your menu to appear. For example:

<?php include("nav_menu.php"); ?>

Then nav_menu.php would contain your navigation menu HTML, with possibly some PHP code.

For more information about PHP include, look here (http://us2.php.net/include/) and here (http://w3schools.com/php/php_includes.asp).

JSRooky
11-02-2007, 12:51 AM
Hi Vinyl-Junkie,
I think I already did it with the HTML, but now I have a problem with the menu height because I want to make it smaller and I don't know where to change that. Also some menu items have a splitter line to divide each one of them but others don't, so how can I make all of them to have this splitter line?