TCA eval with uniqueInPid: allow identical value in localized content
I use the TCA evaluation
uniqueInPid in my extension to get unique URL fragment identifiers ("domain.com/page/#fragment") on the same subpage.
My goal is:¶
- Get unique values on the same page and language.
- Values in localized content elements can be identical to the source language.
- Editors can still set a different value in localized content.
Is this possible with existing TCA? Do I miss a TCA setting which will enables this behaviour? Currently, my values in localized content elements are appended with numbers ("fragment0").
As far as I understand,
uniqueInPid does not distinguish between the different languages. I could use
l10n_mode with 'exclude' to just use the value from the source language, but then I'd not be able to set an individual value.
If a solution does not yet exist: what do you think about a new TCA setting like "uniqueWithinLanguage" to control the behaviour of