empty language selection on home-page

More
13 years 3 weeks ago #14853 by garstud
Hi,

FlexiContent gets the lang parameter based on the lang variable...
On the homepage, Flexi can't load it and all content languages is loaded on the page...

Here is a quick fix:

Edit the file components/com_flexicontent/models/flexicontent.php in the function _buildQuery on line 106, replace:
Code:
$lang = JRequest::getWord('lang', '' );
By:
Code:
$lang = JRequest::getWord('lang', '' ); if(empty($lang)){ $langFactory= JFactory::getLanguage(); $tagLang = $langFactory->getTag(); //Well, the substr is not even required as flexi saves the Joomla language tag... so we could have kept the $tagLang tag variable directly. $lang = substr($tagLang ,0,2); }

There are several instances where this extra code should be added to avoid issues... and you may directly replace your getWord() by this code as it will always do the job and load the right value...
So maybe remove the "empty" check and use directly our code..?

Adrien (AcyMailing) debugging with Marc

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

More
13 years 3 weeks ago #14870 by micker
great
i send this to manu thanks

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
13 years 2 weeks ago - 13 years 2 weeks ago #14945 by garstud
We have try other debug operations.

We have find that this trouble can be found in other /models files (/models/category.php for example).
Last edit: 13 years 2 weeks ago by garstud.

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

More
13 years 2 weeks ago #14946 by micker
insert on this forum and i send to manu (are try to contact him)
thanks for all

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.578 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