Shape 5

Joomla Templates => Emma Smooth - Club => : ipokkel December 16, 2009, 05:04:57 AM



: NoMooMenu = NoFunSefMenu
: ipokkel December 16, 2009, 05:04:57 AM
When setting joomla (1.5.15) to use SEF, mod_rewrite + sef suffix NoMooMenu sets the default link to its alias, e.g., home -> home.html. I want this to default to the livesite url like other menu systems does, e.g, http://www.mydomain.com/.

I've exhausted searching shape 5's forums and tried every trick I know (limited knowledge) to no avail.

Can someone please help me fix this without having to create a rewrite rule in the htaccess file.
Note: The site is on a local dev server so I cannot provide a link)


: Re: NoMooMenu = NoFunSefMenu
: mikek December 16, 2009, 08:49:11 AM
Hello, please post a url of where this is occurring.


: Re: NoMooMenu = NoFunSefMenu
: ipokkel December 16, 2009, 08:52:04 AM
Hi Mike, thanks for the reply, but it's on a local dev server?
Note: The site is on a local dev server so I cannot provide a link)


: Re: NoMooMenu = NoFunSefMenu
: mikek December 16, 2009, 09:02:02 AM
If you edit the file s5_no_moo_menu.php look for:

$s5_check_itemid = strrpos($mitem->link,"frontpage");
 
       if ($s5_check_itemid > 1) {
          $mitem->link = "";
       }

It's about half way down, and replace it with:

if ($mitem->home == 1) {

$mitem->link = "";

}


: Re: NoMooMenu = NoFunSefMenu
: ipokkel December 16, 2009, 09:10:13 AM
Tried it and it still loads the alias... is there anything else we can mod to get this to work?

BTW, thanks for the assistance... greatly appreciated  ;D


: Re: NoMooMenu = NoFunSefMenu
: mikek December 16, 2009, 09:13:59 AM
Hello, I would need to be able to see it on a live server then so I can see the live code.


: Re: NoMooMenu = NoFunSefMenu
: ipokkel December 16, 2009, 09:26:30 AM
Hi Mike,

ALL APOLOGIES!!!, since original post I switched from one of the nomoo menu's in emma smooth to the s5 suckerfish since I was picking up issues in IE8 with the menu battling to loading child items when running rokslideshow in top_1 module.

I have now modified the code in both s5_no_moo_menu.php and s5_suckerfish.php and it's working like a dream.

Thanks a million for sorting this out for me  ;D