Skip Navigation

[Closed] How to hide (repeatable) custom field groups from foreign translations

This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by Christian Cox 3 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#1995891

I have a (repeatable) custom field group that is being translated into 12 languages (using WPML).

1 of the 12 foreign translations of a (default English) site doesn't require these (repeatable) custom fields to be translated.

Is there a way to hide a (repeatable) custom field group from a specific foreign translation version of the site?

Thanks

#1996491

Hello, it depends on where exactly you want to "hide" this repeatable field group (RFG). Are you saying you want to hide these fields from display on the front-end of the site? For example, in the Spanish version of the site, you want to hide specific fields in a View of this RFG? Or you want to default to the English values of these fields instead of the Spanish values?

Or are you saying you want to remove the fields from the ATE translation interface (https://toolset.com/lesson-placement/lesson-placements-1707695-1720767/#how-to-translate-repeatable-field-groups) for only Spanish translations, and default to the primary language value when the field is displayed in the Spanish site?

Or is there some other implementation you would like to discuss? Please provide a bit more detail and screenshots if necessary. I'll be glad to take a look.

#1996617

Hi Christian - thanks for getting back.

What we actually want to achieve is:

The default language (English) has RFG of a list of .pdf documents (x6 in total) that appear on the frontend.

hidden link

All but the Russian site will keep these documents and have them translated into their own languages (e.g Spanish, Turkish, Germany, etc).

However, the Russian site (as mentioned above) has its own documents (x2) that need to be added (that should not appear on any other language version), and the x6 documents (used in the original default language - English) need to be hidden/removed.

What is the best way to achieve this?

Thanks

#1996671

Hi Christian - thank you for getting back to me.

What we are actually trying to achieve is:

The default (English) version of the website has (x6) .pdf documents (RFG field) that need to be translated into all foreign languages apart from one (Russia).

hidden link

The Russia site has its own (x2) documents that are different from the original default (x6) documents above.

Therefore the (x6) default documents need to be hidden and the new (x2) Russia documents added in replacement of the default documents.

How can this best be achieved?

Many thanks

#1996727

Okay I understand a bit better now. If the posts are all created in the primary language, it seems like the post author could add all 6 PDF RFGs. Then when translating, the Russian translator would replace two of the PDF URLs with URLs pointing to the Russian PDFs. The Russian translator would delete the values of the other four PDF URLs. On the front-end of the site where you display these PDF RFGs, you can filter the list (the View) by the PDF field value. Only those PDF RFGs containing PDF URLs will be displayed in the results. Does this approach make sense in your workflow? Or am I missing the problem?

The topic ‘[Closed] How to hide (repeatable) custom field groups from foreign translations’ is closed to new replies.