I had the need to set a title as unique in the same language. So an english and a german node could have 'default' as a title.

I will add a patch to do this.

Comments

rogerpfaff created an issue. See original summary.

rogerpfaff’s picture

Assigned: Unassigned » rogerpfaff
rogerpfaff’s picture

Version: 8.x-1.x-dev » 8.x-1.1
StatusFileSize
new2.81 KB

The patch enables a new setting for "Unique title in same language"

rogerpfaff’s picture

Version: 8.x-1.1 » 8.x-1.x-dev
StatusFileSize
new4.08 KB

Patched again against the dev version. Already with fixed max value. Same behaviour as in #2998069: No check for existing nodes?.

rogerpfaff’s picture

StatusFileSize
new3.59 KB

Another patch without the max values. It's making problems in my setup. Now it does just this one thing for languages.

rogerpfaff’s picture

rogerpfaff’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 5: 2997791-unique_title_same_language.patch, failed testing. View results

cgomezg’s picture

@rogerpfaff I think this is alredy working in module. Because current node is excluded from search.
Can you check?

rogerpfaff’s picture

Status: Needs work » Fixed

Hi @cgomezg. I started a simpytest.me instance and quickly tested this and was able to create a translated node with the same title. I'm not sure if this was my requirement exactly but that works so I'm closing this ticket as fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.