Event Field Language

  • Kaitie
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 days 11 hours ago #173064 by Kaitie
Event Field Language was created by Kaitie
Hello,

I have a multilingual site with some custom event fields and a frontend submit form.

When add a language on the field, it works perfectly for displaying the events on the frontend, but all of the fields still display in the frontend submit form. Is it possible to have the fields only dusplay on their specified language if they have one?

Thank you,
Kaitie

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

More
2 days 9 hours ago #173071 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Field Language
Hmm

The request is not very clear to me. Could you please explain more details about it?

Regards,

Tuan

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

  • Kaitie
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 days 9 hours ago #173072 by Kaitie
Replied by Kaitie on topic Event Field Language
Sorry.

I created custom event fields in the configuration and added a language (language="fr-FR" or language="en-GB") to some of the fields.

I would like the fields with fr-FR to appear on my french frontend event submit form and the en-EN ones to appear on the english frontend submit form. The backend form would display all fields.

Is this a possibility?

Thanks!
Kaitie

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

More
2 days 9 hours ago #173073 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Field Language
Hi Kaitie

It is not possible for now. But I will try to handle that (maybe next release or earlier). Will update you when it is ready

Tuan
The following user(s) said Thank You: Kaitie

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

  • Kaitie
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 days 9 hours ago #173074 by Kaitie
Replied by Kaitie on topic Event Field Language
That would be great.

Thank you!

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

More
1 day 20 hours ago #173090 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Field Language
I decided that to be safe, this can only be implemented as override. You can get this file, unzip it, upload to templates/template_name/html/com_eventbooking/event folder and it should work as expected (template_name must be replaced with name of the template which you are using on your site)

Regards,

Tuan
Attachments:

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

  • Kaitie
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 day 9 hours ago #173102 by Kaitie
Replied by Kaitie on topic Event Field Language
Thank you - I wasn't expecting it so soon!

I only have on question, if I have a required field in french and I'm in the english frontend form, I get an error for the required french field that does not appear in this form. Is there a way to adjust this?

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

More
1 day 9 hours ago #173103 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Field Language
The easiest way would be disable validation, or do not have these fields required

Regards,

Tuan

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

  • Kaitie
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 day 9 hours ago #173104 by Kaitie
Replied by Kaitie on topic Event Field Language
Ok, that's what I'll do.

Thanks again

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

More
1 day 8 hours ago #173106 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Field Language
OK. Use that for now. When I have some free time, I will see if I can help with an override to not validating the field if it is not being displayed in the current language. But for now, just disable validation

Regards,

Tuan
The following user(s) said Thank You: Kaitie

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

Moderators: Tuan Pham Ngoc