What I need is a unique field entered by the user (unique_field module), but only once. After you save the node, this field must be impossible to change. Will be deactivated. Then, using the value of this field, you can create (using the Token and Pathauto modules), a unique url address, for example: www.example.com/sites/unique_field_text

Do you know any modules or other solution?
Thans for your help!

Comments

arithmetric’s picture

Title: unique field and unique url » Requiring a unique value and locking the field
Component: User interface » Miscellaneous
Assigned: nobarte » Unassigned
Status: Active » Closed (works as designed)

For your use case, it sounds like you can use the Unique Field module to ensure that the value given for the field is unique, but you also need some way to lock a field after a value is set.

I don't know of any module that provides this functionality. The most direct solution may be to write a module that uses hook_form_alter (http://api.drupal.org/api/function/hook_form_alter/6) to disable the field on the node form if a value is specified.

FYI: There's also an issue written up for this in the CCK queue: #761396: How to lock cck fields on edit page? .

Good luck!