Closed (outdated)
Project:
Unique field
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2010 at 18:38 UTC
Updated:
18 Apr 2024 at 08:58 UTC
Jump to comment: Most recent
Comments
Comment #1
Sawascwoolf commentedsubscribe
Comment #2
problue solutionssubscribe
Comment #3
bisonbleu commentedsubscribe
Comment #4
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 commentedsubscribe!
Comment #6
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 commentedWill be awesome
Comment #8
astonvictor 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