Shape 5

General Category => Joomla Talk => : billtqvn March 28, 2008, 01:09:49 AM



: Main menu does not work with sh404sef
: billtqvn March 28, 2008, 01:09:49 AM
Hi,

I have problem with menu at Main menu position when using SEO enable and sh404sef. Menu links lead to Not Found page. When I turn off Joomla SEO and sh404sef, all work ok.

I am using Joomla 1.5 and VM1.1RC2. Try Main menu with both No-MooMenu and Suckerfish.

Please help me to figure out this issue.

Thanks


: Re: Main menu does not work with sh404sef
: mikek March 28, 2008, 06:37:04 AM
Hi, can you post a url so I can see what links are being created?


: Re: Main menu does not work with sh404sef
: billtqvn March 28, 2008, 09:17:00 AM
Hi,

Sorry, I am doing on localhost, so do not have link to show you.

Other menu positions do not have this issue, just main menu.

For instance, no SEO and SEF, the link is: http://localhost/demo/index.php?option=com_content&view=article&id=3&Itemid=7

but, when SEO and SEF on, it will be http://localhost/demo/solution

I put the same menu on bottom position, it work well, but mainmenu position not. In bottom position, it appear like  this: http://localhost/demo/index.php/solution.html

That is the issue.

Thanks


: Re: Main menu does not work with sh404sef
: jonahh March 28, 2008, 10:18:52 AM
Have you also enabled " Use Apache mod_rewrite" and " Add suffix to URLs" in  your global configuration?


: Re: Main menu does not work with sh404sef
: billtqvn March 30, 2008, 10:14:53 AM
I do not us these cause I use "without .htaccess" feature of sh404sef.

And I do not think that is the point. Because the same menu is in two position, one at mainmenu of template, other at bottom, at bottom they work but at mainmenu they does not.


: Re: Main menu does not work with sh404sef
: billtqvn March 31, 2008, 02:49:49 AM
Hi,

You could check my live site here: http://www.ntdc.com.vn

Thanks


: Re: Main menu does not work with sh404sef
: junk123 August 05, 2008, 12:22:38 AM
Hi there,

I've been banging my head over this one for a while, but I basically compared the Joomla menu and the S5 menu side by side and noticed the S5 version uses aliases vs a url.

Keep in mind, I don't know programming much, but I'm usually pretty good at troubleshooting things.  So this may not be the best solution, but it got the problem solved for me.


Go to the "templates" folder, then into the S5 template you're using (usually the folder is the same name as the template)

There you'll find the menu file.  I don't know the structure of the other templates S5 has so instructions may be slightly different.  Anyhow, download it and MAKE A BACKUP of it as well.  Then edit it.

Look for this one line:
$mitem->link = JRoute::_($mitem->alias);


Then replace it with the following:
//************************************************************************

//      $mitem->link = JRoute::_($mitem->alias);
   $menu_params = new stdClass();
   $menu_params = new JParameter($mitem->params);
   $menu_secure = $menu_params->def('secure', 0);
      if (strcasecmp(substr($mitem->link, 0, 4), 'http')) {
         $mitem->link = JRoute::_($mitem->link, true, $menu_secure);

      } else {
         $mitem->link = $mitem->link;
      }


//************************************************************************


Save the file, then upload it back and see if it works.
It felt SO good to have se404SEF working!  Hope this does it for you too!


: Re: Main menu does not work with sh404sef
: pici65 September 08, 2013, 02:29:26 AM
Is it possible to hack  in joomla 2.5? Shape 5 template in multilanguage give me problem with sh404sef.
Two language. The second one redirect on first one when I click to "home". In Beez2 all is run well..
Thanks for suggest.


: Re: Main menu does not work with sh404sef
: mikenicoll September 09, 2013, 12:05:00 AM
Hello,

The template itself doesn't control any of the multilanguage functions in Joomla. I would suggest watching our Multilanguage Video Tutorial which explains how to set this up properly.

http://www.youtube.com/watch?v=_Ka8B4ZnFvk

If the issue is the result of SH404SEF then you will need to contact them for assistance with their extension.

-Mike


: Re: Main menu does not work with sh404sef
: pici65 September 09, 2013, 05:23:14 AM
Thanks I reply in dedicated area for Prestige template.


: Re: Main menu does not work with sh404sef
: mikenicoll September 09, 2013, 06:15:15 PM
Alright NP

-Mike