Tim Yang’s Weblog

Jump to content

About Tim Yang’s Weblog

Nothing to see here.

Subscribe to this

Categories

Archives

Tags


-->

Extended Menu Joomla hack for bad homepage alias

Nov 2009
11

The Extended Menu module for Joomla 1.5 is both really useful and really popular for creating dropdown CSS menus. But it has a problem if you have a homepage link as a menu item.

Extended Menu always adds the homepage alias as a suffix rather than linking directly to your root. ie http://yourdomain.com/home instead of http://yourdomain.com.

(The standard Joomla Main Menu module doesn’t have this problem.)

Here is the hack to solve it.

1. Open /modules/mod_exmenu/exmenu/view/menuview.class.php in your editor

2. Find

default:    // formerly case 2
// open in parent window

3. Append after those lines

if($menuNode->link == "http://yourdomain.com/home") {
$menuNode->link = "http://yourdomain.com/";
}

Voila! Works for any troublesome link. Sent to me by Richard Biddle.


Comments are closed.

Credits

Copywriter Malaysia