Closed (fixed)
Project:
Drupal core
Component:
node system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2004 at 13:29 UTC
Updated:
22 Apr 2004 at 08:15 UTC
I think I have an easy 2 step solution to make nodes editable without rewriting the node module.
/* On the Administer >> Accounts >> Permissions page */
//-----------------------------------------------------
// List the node types in the permissions list like so, "Edit book nodes, Edit story nodes, Edit image nodes, etc".
/* In the node module, node access and node link sections */
//----------------------------------------------------------
// In the if statement check if the user created the node (as shown in the post listed below) and check if the role has permissions to allow him or her to edit the node. If yes to these conditions, then by all means get out of his way.
For me this is the last critical piece before making my site live. This may need to be changed at the reactor core so that it will not be over written everytime drupal gets updated.
- Judah
PS. Here is a reference to the node code that allows a user to edit his own nodes.
http://drupal.org/node/view/2980
PSS. I'm not sure why but my page (node preview) is getting stretched each time i preview on my browser nn7.1.
Comments
Comment #1
judah commentedEven simpler! 10 min solution! (I sound like a banner ad)
Here is an even simpler, faster solution. Have an option on the Home » administer » configuration » modules » nodes page that says something like, "Enable users to edit own node types:" and then have a list of the nodes types the user can edit. Once selected users can edit their own nodes as long as they are the allowed editable node types.
Or more simply add a single checkbox the aforementioned page that says, "Enable users to edit own nodes".
I can understand the reasoning behind not allowing users to edit their own nodes but that reasoning is too limited in scope.
Right now it's sortof access to all or nothing. To edit a node, the user has to either be creating a book page, for which he then can edit any book page - global permission to any book node, or he has one-time one shot permissions, and in the future he has to append revisions in the comments section. Or, as a last resort, send the page to an administrator to update the node.
These are just suggestions. I'm still new and don't know all the inner workings of Drupal and so maybe there is a simple way (without going into the code and thus breaking all future updates). If not I humbly request you consider this feature. Thank you, Judah
Comment #2
moshe weitzman commentedComment #3
matt westgate commentedThe node modules in the core now have this functionality.
Comment #4
(not verified) commentedComment #5
judah commentedI appreciate this. Thank you.