My client has 12 sites, most of which have a specific language that the entire site is in. Editors are multilingual and jump between sites, forgetting to change the language in the upper right of the Content Editor. I would like to configure Insert Options Rules based on the language that is present in the Item.
To my surprise, the rule
where the item language is equal to nl-NL does not actually look at the item and whether it has a language-field with value nl-NL, it simply looks at the language selected in the upper-right. So when they right-click on an item that only has a
language: en version, but they were just editing in a
nl-NL website, they see the Insert Options for
nl-NL rather than
I've tried the
where the specific field compares to specific value rule with
language field being
equal to the value
nl-NL but that doesn't work, the Insert Option never shows up anywhere under any circumstances.
My work-around is to use the
where the item is the specific item or one of its descendants rule, but seeing as there's already 12 and possibly more in the future, times the number of rules we'll have for different insert options, this is not the best maintainability for us.
Is there a better way to do this? Ideally actually reading the present language-fields of an item?