[SOLVED] Category view and language switcher

More
8 years 8 months ago #60417 by marc.light
All menu items , items have a language and are associated with the core function. Categories are set to all and are not translated. Could this be the problem?

This is really weird, if you take this page, it's a menu to a FLEXIContent item: icrml.ca/fr/contactez-nous and it switches perfectly.

Thanks again for your help. I'm really clueless on this one.

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

More
8 years 8 months ago #60422 by ggppdk
Hello

the last example you provided works because you have 2 menu items pointing directly to items (to item view)

i suspect that there may be a menu item with language "ALL" under a menu item with language english

e.g.
what is the language of menu item with menu alias:
research-and-publications

what is the language of menu item with menu alias:
cirlm-publications

- also have you disabled Joomla system messages BOX from the Joomla template:
is this inside your Joomla template
<jdoc:include type="message" />

you may send me a PM with access


-- 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...

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

More
8 years 8 months ago #60476 by marc.light
I have updates.

I was able to reproduce the problem on a new install with the default templates. The problem seems to only be when a category is not translated and set to all. I created a category called "Test All" with the language set to "All". In it, 2 items, on in english and one in french. They are associated. I have then created a flexi category menu item, on in french and one in english, also associated.

You can check the results here: flexi.vox-dev.com/

I will PM admin access.

Thanks.

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

More
8 years 8 months ago #60480 by ggppdk
Hello

i have made a fix

Explanation:
When creating ITEM LINKS, we search for an "Appropriate" menu item
- the ACTIVE menu item is usually "prefered" if it "appropriate" for the item,
(thus the menu item that was found is discarded)

but the language of ACTIVE MENU ITEM was not checked to be same as item or "ALL"
The above is only a problem when switching language (or when listing items without language filtering)

The fixed file is:
raw.githubusercontent.com/FLEXIcontent/f...te/helpers/route.php
- Do a "Save AS" in the browser

then test by backing up and replacing (clean Joomla cache too if you have enabled Joomla cache)
components/com_flexicontent/helpers/route.php

and post back


-- 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...

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

More
8 years 8 months ago #60498 by marc.light
Your fix works! Thanks a lot!

Is it gonna be in future updates?

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

More
8 years 8 months ago #60504 by ggppdk
Hello

thanks for confirming fix,
yes it is bug and it fixed was added to v3.0.14:
see changelog TAB here:
www.flexicontent.org/downloads/latest-version.html


-- 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...
The following user(s) said Thank You: marc.light

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.040 seconds
Save
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