Saturday, October 10, 2009

Unique field

This module performs additional validation when a node is created or updated by a user to require that a node's title, author, language, and CCK fields are unique within a given context.

Without this module, Drupal and CCK do not prevent multiple nodes from having the same title or the same value in a certain field.

For example, if you have a content type with a date field and there should only be one node per date, you could use this module to prevent a node from being saved with a date already used in another node.

Configuration

Once this module is enabled, it adds a 'Unique field settings' section to each content type's administration page for specifying which fields for that content type must be unique.

The administrator may choose whether the fields must be unique among all other nodes, among nodes of the same content type, or of the same language.

Also, the administrator may specify whether each field must be unique or whether the fields in combination must be unique.

Alternatively, the administrator can select the 'single node' scope, which allows you to require that the values of the specified fields are unique in comparison to each other on only the given node. For example, if a node has multiple user reference fields, this setting will require that no user is selected more than once on one node.

Known issues

  • CCK module compatibility: This module is compatible with the core CCK fields (including text, number, node reference, user reference) as well as fields provided by some contributed modules (including Date and Content Taxonomy).
  • This module is intended to function when a node is being validated prior to being created or updated. It does not prevent nodes from being programmatically saved with duplicate values (including when a node is reverted to an earlier revision).

Feature requests and sponsorship

Please contact the module's maintainer by e-mail if you are able to sponsor the development of new features for this module.

This module's development was initially sponsored by Icelink Design. Further development has been sponsored by Third Ave and Sundays Energy.

Releases

Official releasesDateSizeLinksStatus
6.x-1.12009-Mar-0712.37 KBRecommended for 6.xThis is currently the recommended release for 6.x.
5.x-1.02009-Mar-0710.89 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
6.x-1.x-dev2009-Mar-0712.37 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
5.x-1.x-dev2009-Apr-2510.96 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.

No comments:

Post a Comment