Closed (duplicate)
Project:
Unique field
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2008 at 00:28 UTC
Updated:
1 Mar 2010 at 00:54 UTC
Jump to comment: Most recent file
Comments
Comment #1
sterwa commentedOne way to approach this would be to use Content Taxonomy (http://drupal.org/project/content_taxonomy ) which allows to expose existing taxonomies as fields. Then unique_field would be used to constrain the uniqueness of a combination of a title plus a taxonomy term. Too bad such a setup does not work though, giving me an error
warning: Invalid argument supplied for foreach() in /home/mysite/public_html/sites/all/modules/unique_field/unique_field.module on line 158.
Comment #2
arithmetric commentedHi bsuttis and sterwa,
The latest version of Unique Field is compatible with the Content Taxonomy module, so you can use Unique Field to require that terms used in Content Taxonomy fields are unique.
However, the Unique Field module does not currently support requiring that taxonomy terms used through the core taxonomy system are unique. If you are able to sponsor development of this feature, please contact me by e-mail.
Comment #3
arithmetric commentedComment #4
Matthew Davidson commentedBecause I needed this for a D5 site, here's a first stab at it. I'm sorry I don't have time to do a D6 version at the moment, but would like to revisit this when I do. Hopefully in the meantime somebody else can have a go.
(For D6, you won't need the $qjoinfield variable I added; this is just to get around the way D5 taxonomy terms are assigned to node IDs instead of revision IDs.)
Limitations I know of:
Apart from that, seems to work for me. YMMV.
Comment #5
Matthew Davidson commentedComment #6
Matthew Davidson commentedAppears to be fixed in #375409: Unique taxonomy term?.