Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Ive set permissions in, the main page enabling anybody to create a node, but nobody can edit a node.
I have a field in my content type that i want anybody to be able to edit so i set Edit description, regardless of node author. but still cant edit it?
Do i need to enable anybody can edit nodes in the main permissions page? But then how do i stop people editing the title?
Comment | File | Size | Author |
---|---|---|---|
#12 | title_perms invalid argument error.png | 7.29 KB | Anil Reddy Vallur |
Comments
Comment #1
markus_petrux CreditAttribution: markus_petrux commentedThis module deals only with CCK fields, so it cannot help you protect the title, sadly.
You could solve this issue with a small custom module that sets the '#access' attribute of the title element to FALSE from hook_form_alter() when the proper conditions success. I'm afraid, this is out of the scope of this module.
Comment #3
joelstein CreditAttribution: joelstein commentedAny chance we can revisit this as a feature for D7? We have several situations where the title should not be editable by certain users. Though the title is not a "field" in the "fields api" sense, it's presented as such on the node form, and it would be nice to use the same interface that we use for the rest of the fields.
Comment #4
RobLoachMaybe something with http://drupal.org/project/auto_nodetitle ?
Comment #5
pmkanse CreditAttribution: pmkanse commentedHi All,
Its too late to reply, but its better than never ;-).
Please follow the link for the module
http://drupalcode.org/sandbox/pmkanse/1717288.git/commit/bf4b3185991348d...
Using this you can set permission as per user role to edit the title.
Hope this is helpful.
Cheers!!!
Comment #6
lohithsunchu CreditAttribution: lohithsunchu commentedThank you @pmkanse , it worked.
Comment #7
arpitr CreditAttribution: arpitr commentedthanks @pmkanse for the module. I wonder why this module is still in sandbox and is there a reason to create it as separate module instead of patching field_permissions module
Comment #8
arpitr CreditAttribution: arpitr commentedComment #9
sirtetThe title module is another solution to this.
https://www.drupal.org/project/title
Comment #10
ryantollefson CreditAttribution: ryantollefson commentedThanks for the tip sirtet - converting the title field worked great for my needs.
Comment #11
1kenthomas CreditAttribution: 1kenthomas as a volunteer commentedWas the title perms module ever rolled into a release? Might be better than the Title module solution (Wikitools also offer a solution, by an 'admin title' perm).
Marking "works as designed" from the perspective of Field Perms.
Comment #12
Anil Reddy Vallur CreditAttribution: Anil Reddy Vallur commentedHi pmkanse
I have referred your module to set the permissions for administering the node title. I am getting an invalid argument warning, screenshot of which is attached.
Did you mean 'administering the node title' means editable node title?