[support] make title not editable

Todd Bloom todd.bloom at me.com
Tue Aug 21 01:03:07 UTC 2012


I'm not familiar with the node clone module, honestly, but would a combination of hook_form_alter (to disable the field) and hook_node_presave (to act as a 'catch-all' to either override the title or insert your own custom title) work?

I don't know if node_clone.module injects some way to determine if the new node is a clone or such, unfortunately. 

Regards,
Todd

On Aug 20, 2012, at 6:11 PM, "Hummel, Tracey S - (thummel)" <thummel at email.arizona.edu> wrote:

> In Drupal 7, I'm using the Node Clone module to create copies of nodes that get assigned to different users.  I'd like the user who gets ownership of the cloned node to be able to edit anything except the Title. 
> 
> Is there any way to make the title field not editable by the owner of the node?
> 
> I tried creating a new CCK Title field and then used Auto Node Title to populate the default title field with this new CCK field.  I then used Field Permissions to only allow specific roles to update that CCK field. 
> 
> It works great except when the node is cloned, any special characters in the CCK Title field get character encoded. 
> 
> Original node title: 
> Conjunctions "et", "mais" and "ou" 
> 
> Cloned node title: 
> Conjunctions &quot;et&quot;, &quot;mais&quot; and &quot;ou&quot; 
> 
> Any ideas?
> 
> Thank you,
> Tracey
> 
> --------------------
> Tracey Hummel
> Web Application Developer
> University of Arizona
> Social & Behavioral Sciences Technical Services
> University Services Building, 888 N. Euclid, Room 302
> PO Box 210158, Tucson AZ  85721-0158
> 520-626-3223
> tracey at arizona.edu
> http://tshummel.com
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120820/e5a4180a/attachment-0001.html 


More information about the support mailing list