Hi,
I would like to be able to check that only the URL is unique when I am using the Link content type in CCK.
http://drupal.org/project/link
Unique field lets me select my link field but only flags a dupe if the title and url are the same. The user types in the link title, so this means there is almost never a match when a dupe is submitted.
Would it be possible to modify the "Unique field settings" under the Content Type settings to allow subfields of compound data types to be selected individually?
Thanks,
redrum
Comments
Comment #1
abqaria commentedsubscribing
Comment #2
arithmetric commentedHi redrum,
You're right that the the Unique Field module compares an entire field of one node to an entire field of another node. It does not check that each (or any specific) sub-field is unique.
As I've tested the Unique Field module with different CCK modules, I've been surprised at the variety of ways that fields are implemented -- specifically whether and how sub-fields are used -- and concluded that it is currently too difficult to implement a more specific matching criteria that still maintains general compatibility.
I do think the implementation of fields in core in Drupal 7 may clarify some of these incompatibilities -- I've just begun to look at what the implications are for this module.
Regarding your example: The best way to ensure that URLs in Link fields are unique using this module is to disable the link field's title and add a separate text field for saving the title.
Hope this helps.