Language switcher and Category Blog menu item

More
10 years 7 months ago #56884 by marc.light
Hi,

When I use the language switcher with a Category Blog or FLEXIcontent Category menu item, it's not routing to the good menu item.

I use FLEXIcontent 3.0.7 and Joomla 3.4.3. No other extensions.

What seems to be creating the conflict is that on the home page I use Category Blog menu item to show the last news (only one). I also have a Category Blog menu item with for all the news. Then language switcher switches to the all news from the home in both languages. I've tried with FLEXIcontent Category menu item with the same results.

I hope my explanation is right. Thanks for your help.

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #56885 by ggppdk
Hello

what is a "good" menu item ?

do you meant that you have associated the menu items, but the associated menu item is not used ?

the menu item when switching is done like this:
- if menu item associations are used then this have priority,

then if not we do a best match which is
- correct access level, correct language and is a menu item of the closest parent category

if it is the closest parent category then it is what the code intended to do


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #56893 by marc.light
Yes by good menu item, I mean the associated menu item, sorry for the confusion.

Every association is set but it does not behave like you are saying. Right now it's switching to another menu item that is set with the same category.

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #56895 by ggppdk
Hello

the associated menu item will be used if it is direct match of the view,
e.g.
somepath/menu-alias1.html
will switch to associated menu item
somepath/menu-alias2.html


-- if you are viewing a some FLEXIcontent item , and you switch language then the associated FLEXIcontent item is used with an auto selected menu item, that best matches the item


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #56896 by ggppdk
Code:
-- if you are viewing a some FLEXIcontent item , and you switch language then the associated FLEXIcontent item is used with an auto selected menu item, that best matches the item

- in item view the (-LAST-) selected menu item of course it does not depend on the associations of menu items,
e.g. you can assoicate menu items of different components, of categories that the item does not belong too etc,

menu item assoications if for switching menu items, and not for switching items, best match menu item is always applied, so does it happen in Joomla article view too


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #56908 by marc.light
If I unpublish any Category Blog menu item that uses the same category, the language switcher works as expected. I also tried changing the Category Blog menu item to FLEXIcontent Category menu item and the same thing happens.

I've tested it on a Joomla site with the same menu items but without FLEXIcontent and the language switcher works fine.

Thanks again for your help.

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago - 10 years 7 months ago #56909 by ggppdk
Hello

you have this:

1. these associated menu items
somepath/menu-alias1.html
somepath/menu-alias2.html

2. that are pointing to a FLEXIcontent category views

3. You do not have this URL (this may not switch to menu item)
somepath/menu-alias1/category/44-some-cat-alias.html

but instead you have URLs like in -1-, and they do not switch to each other ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!
Last edit: 10 years 7 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #56916 by marc.light
I have index.php/en that is EN default and is a Category Blog menu item. It is associated to index/fr. The problem is that the language switcher won't switch to associated menu item. If you click on the logo it brings you back to the home where the language switcher should bring you.

If I disable all menu items associated to the same category, it works. All menu items and categories are translated and associated.

Thanks again.

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #57125 by marc.light
I did some tests and it's not a FLEXIcontent bug but a Joomla one. I've setup a fresh install without FLEXIcontent and the problem occurs.

Try switching languages from the home, it brings you to News or Nouvelles: flexi.vox-dev.com

I'll report this to Joomla.

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #57142 by marc.light
I reported this to Joomla and they seem to say that it's just how Joomla works. I guess I'll have to check for a workaround.

forum.joomla.org/viewtopic.php?f=711&t=8...0&p=3328571#p3328571

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save