View Full Version : UDM & Drupal
02-10-2009, 09:06 PM
Hello everyone, I'm a new user.
I am looking to use your menu with Drupal 6.9, and was just wondering if anyone can give me any pointers as how to go about this. It is only a test site so no-one's reputation is at stake :)
I assume I upload the udm4 and udm4-php directories doc root folder and take it from there.
02-13-2009, 02:50 PM
That's pretty much it. Then you'll need to modify your layout templates to include the files in the right places.
One issue to be aware of is paths. For example, in the udm-custom.js file, there is a reference needed to the udm-resources folder, which by default is set to a relative path
um.baseSRC = "udm-resources/";
You'll probably need to make that an absolute path, especially if your site uses mod rewrite for SEO purposes.
02-15-2009, 12:05 PM
Thanks for your reply,
Eh emm...I jumped the gun!
I looked again at the download 3 folders udm4, udm4-asp and udm4-php so I figured the udm4-php was the one I wanted I uploaded the contents to my doc root. When I browse to mysite/template.php I see:
Accessible Website Menu
Ultimate Drop Down Menu 4.51 by Brothercake
A bunch of links.
Additionally when I look in the udm-resources folder I don't see a udm-custom.js
PS I can't wait to start working with UDM4 menus, it really is just what I'm looking for!
02-16-2009, 01:16 AM
OK, all is working and just used a php include to add template.php to my drupal site! Downloaded the expanding-single.ini file and got that working too!
Thanks to the tutorials on this site.
One more small question though....how to set the width? I see the entries in the expanding-single.ini file:
$um['navbar'] = array(
'0', // nav to menu x-offset (+-)["n" pixels]
'0', // nav to menu y-offset (+-)["n" pixels]
'154px', // width ["em"|"ex"|"px"]
and rather worryingly for me a comment "("%" doesn"t work right)"
My site has fluid width columns, so ideally I want navbar to have 90% width, is there a workaround for this?
Or am I beat?
02-16-2009, 06:16 PM
You could always use external styles to "override" the menu settings.
The reason % "doesn't work right" is because we've found that getting a nice cross-browser solution isn't easy. If you know your visitor traffic, you can use the override method above with out too much worries.
vBulletin® v3.0.1, Copyright ©2000-2023, Jelsoft Enterprises Ltd.