Forum
Welcome, Guest
Please Login to access forum.
Re:Redirect : only home page is listed (1 viewing) 
Go to bottom
TOPIC: Re:Redirect : only home page is listed
#3985
CONFORT BAIE
Fresh Boarder
Posts: 10
User Offline
[SOLVED]Redirect : only home page is listed Karma: 0  
Hi,

I try to redirect several pages of my site but I only can redirect the home page.

The others menu (articles) are not listed...

I hope you could help me
 
Logged Logged  
  The administrator has disabled public write access.
#3987
John Dagelmore
Admin
Posts: 3722
User Offline
Re:Redirect : only home page is listed Karma: 79  
Hi,

the redirect is possible only between menu items linking directly to a component.

The dropdowns list all menu and menu items directly linking to a component view.
Alias menu, external URL, etc are not supported and listed .
 
Logged Logged  
  The administrator has disabled public write access.
#3988
CONFORT BAIE
Fresh Boarder
Posts: 10
User Offline
Re:Redirect : only home page is listed Karma: 0  
Thank you for your very quick reply.

Ok but my first redirection works perfectly. It was an article with an alias. Why could I not do the same for the others ?
 
Logged Logged  
  The administrator has disabled public write access.
#3989
John Dagelmore
Admin
Posts: 3722
User Offline
Re:Redirect : only home page is listed Karma: 79  
Because other menu items are subchilds of a menu item type 'Separator' and are not listed for this reason.

If you need to manage them a custom code is needed to have them listed for redirects.
 
Logged Logged  
  The administrator has disabled public write access.
#3990
CONFORT BAIE
Fresh Boarder
Posts: 10
User Offline
Re:Redirect : only home page is listed Karma: 0  
It's very important to have custom and light pages for the mobile version so I need absolutely redirect all my pages...

What kind of custom code could I use to do the trick ?
 
Logged Logged  
  The administrator has disabled public write access.
#3991
John Dagelmore
Admin
Posts: 3722
User Offline
Re:Redirect : only home page is listed Karma: 79  
Ok, it's easy basically only one line of code needs to be commented out.

Open the file:
yourjoomlapath/administrator/components/com_responsivizer/framework/elements/menuselect.php

and at line 89 comment it out from:

Code:

"\n AND m.type = " . $db->quote('component') .
to:
Code:

//"\n AND m.type = " . $db->quote('component') .
Removing that filter will list all menu items despite the fact they are separator, alias, etc and all sub-childs
 
Logged Logged  
  The administrator has disabled public write access.
Go to top