Problem with SEF and native multi language joomla 2.5

GK User
Wed May 30, 2012 2:50 pm
Hello I have problems with routing and SEF with joomla 2.5 and latest version of esport template

you can check by yourself at www.modacalcio.it

path to category is created with a very long (and wrong) url

Let's look at following example. The problem seems to be the path of a category ( field path in #__menu table ) :

~~~~~~~~~New menu voice. ~~~~~~~~~~~~
Name -- League
Language -- English
Alias -- search-football-shirt-by-league
Level -- Main
Link -- index.php?option=com_virtuemart&view=categories&virtuemart_category_id=314

~~~~~~ On Database table #__menu ~~~~~~~~~~~~~~~
path --- campionato/serie-a/search-football-shirt-by-league/suche-produkt-nach-liga/serie-a/Ligue/serie-a ---> ?? mixed language with a sub category wrongly in - It uses all other alias of same category in other languages
All the rest remains the same

~~~~~~~~~New menu SUB voice. ~~~~~~~~~~~~
Name -- English League
Language -- English
Alias -- search-football-shirt-by-premier-league-english-league
Level -- Under League ( previously created voice )
Link -- index.php?option=com_virtuemart&view=category&virtuemart_category_id=306

~~~~~~ On Database table ~~~~~~~~~~~~~~~
path --- serie-a/Ligue/serie-a/suche-produkt-nach-liga/search-football-shirt-by-league/serie-a/campionato/search-football-shirt-by-premier-league-english-league/sconti-maglie-calcio-liga-spagnola/suche-fussball-trikot-rabatt-nach-spanien-liga-team/spanish-Ligue-football-maillots-rabais ---> ?? Again mixed language with a sub with parent alias in all languages and also child alias in all languages . Also other category alias is used!

All the rest remains the same
User avatar
Fresh Boarder

teitbite
Fri Jun 01, 2012 10:12 am
Hi

That's really odd. Can You please show this to me ? I suspect it can be connected with menu structure, but will need to check it first. Please send me an access to joomla panel.
User avatar
Moderator

GK User
Tue Jun 05, 2012 3:33 pm
teitbite wrote:Hi

That's really odd. Can You please show this to me ? I suspect it can be connected with menu structure, but will need to check it first. Please send me an access to joomla panel.


Hello I left my website alive to show it

www.modacalcio.it

I have manually corrected the path field of #__menu table and it works in some parts, but f.e. in french language it does not work at all

When build the menu item calculate wrongly the path

If you need I can grant you access so you can check
User avatar
Fresh Boarder

teitbite
Thu Jun 07, 2012 9:40 am
Hi

Sorry. But I have no idea and haven't found anything in this topic. I believe You need to ask on joomla forum.

Just for one more try, can You please send me an access to joomla panel ?
User avatar
Moderator

GK User
Thu Jun 07, 2012 12:59 pm
Hi I finally solved by my self

I don't know if problem is joomla's or yours, but setting manually the path field on the DB now it works, important is no space and no uppercase letters

I had another problem:

The search does not work too. The problem was found in :

/home/giuseppe/homeProj/ModaFinala/templates/gk_esport/html/mod_virtuemart_search/default.php

I had to cancel on line 4:

// echo JRoute::_('index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$category_id );

This because Jroute again build a 4 language Url that brought errors, but without printing anything in the form it seems to work in all languages

The problem is now that below in the search field the pagination is broken:

http://www.modacalcio.it/it/?keyword=na ... w=category

if you want to go to page 2 or select to see more item than 5 at once, it goes nowhere

Can you check or I have to open another issue discussion?

Thanks
User avatar
Fresh Boarder

teitbite
Thu Jun 07, 2012 3:13 pm
Hi

I can see the link is produced badly. Try maby remove "JRoute::_(" and a closing ")" so this will not be rewritten. Should work than.

But first please check if it's a joomla or template fault by renaming /html/com_virtuemart to /html/_com_virtuemart . Just for a minute to see if a regular virtuemart code works or not.
User avatar
Moderator

GK User
Mon Jun 11, 2012 12:48 pm
Hello I tried first to rename the virtuemart override and it worked, so I edited removing the Jroute method, and it worked too

Thanks
User avatar
Fresh Boarder

GK User
Tue Jun 12, 2012 10:52 am
For your information I have to disable also the override inside template mod_virtuemart_search

Also removing Jroute the pagination does not works from your override

Thanks
User avatar
Fresh Boarder

teitbite
Tue Jun 12, 2012 12:17 pm
Hi

So the style must be for a different version of VM because noone else reported this problem. Can You please tell me which template version and VM version do You have ?
User avatar
Moderator


cron