Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
So we could do lots of different things when dupe stuff is found.
For example I would like to redirect the user to a signup / payment page :)
With Rules we could also display custom error message.
Comments
Comment #1
Sawascwoolf CreditAttribution: Sawascwoolf commentedsubscribe
Comment #2
Problue Solutionssubscribe
Comment #3
bisonbleu CreditAttribution: bisonbleu commentedsubscribe
Comment #4
nfriend CreditAttribution: nfriend commentedGreat module!
Perhaps some rules integration would help address the the Add Content rules option as this get by the duplicate check.
Thanks -Neil
Comment #5
pbeakley CreditAttribution: pbeakley commentedsubscribe!
Comment #6
dreftymac CreditAttribution: dreftymac commentedPROBLEM:
CCK unique_field module does not support configurable actions when a field duplication rule is violated.
The only action available is the display of a standard error message.
The error message is always the same regardless of the duplication context or node type.
WORKAROUND-001:
Use the stringoverrides module to change the default error message.
(See http://drupal.org/project/stringoverrides)
### ********************
### original
The @label field requires a unique value, and the specified value is already used.
### ********************
### replacement
The @label specified already exists in the database, Please click here for more details.
BENEFITS-001:
Using this method, it is possible to get (minimal) Rules integration.
Rules integration can be done by triggering a rule whenever the user clicks on the link in the custom error message.
Just make a custom rule to do whatever action you want.
(See http://drupal.org/project/pathrules)
PITFALLS-001:
This only provides a way to change from one singular fixed error message to another.
This still does not provide custom error messages for each duplication context.
Comment #7
carajito CreditAttribution: carajito commentedWill be awesome
Comment #8
AstonVictor CreditAttribution: AstonVictor as a volunteer and at DevBranch commentedI'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks