How to automatically set language in frontend content submission to be the language of current user ?

More
10 years 1 month ago - 10 years 1 month ago #54458 by anusiram
Hi,

I have created multilanguage site in Joomla. Default language is English, second language is French.

I created user login module and front end article submission for English website.

I registered a user in English site (front end) and logged in. I clicked on 'Submit an article'.

In 'Create article' page, language is displayed as 'All'. I want this to be displayed as 'English' as the user logged into English website.

If the user is logged into French website, Language should be automatically set to French.

Instead of selecting the language manually, I want to set it automatically to the language the user logged in. Because most of the time, user forgets to select the language.

I believe small piece of code will do this. Can someone please help me to achieve this?

Regards,
Ramesh.
Last edit: 10 years 1 month ago by ggppdk.

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

More
10 years 1 month ago #54496 by ggppdk
Hello

this is already in our GitHub repository, you can use this in v3.0.0 RC (start of next week)


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

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