Pimcore: Only one language mandatory

Created on 19 Jun 2018  路  4Comments  路  Source: pimcore/pimcore

Hi,

For a client (for several projects even) need to make only one language mandatory on the set of localized fields. Assuming that my content is localized in 3 languages (FR, EN, ES), we would like only one of these 3 languages to be required during registration and publication.

Cheers,

Most helpful comment

Will be great to be able to mark what languages are required on both - field-level and on global level. Field has higher priority than global.

All 4 comments

set field as optional and implement onObjectPreUpdate event with your own rules
and throw exception if problem
throw new ValidationException("Empty title value (sk_SK)");

Yes, it's a solution, but an improvement in the configuration of the class would be more flexible for non-developer users

Had this requirement many times. Will be practical says my experience.

Will be great to be able to mark what languages are required on both - field-level and on global level. Field has higher priority than global.

Was this page helpful?
0 / 5 - 0 ratings