Answer the question
In order to leave comments, you need to log in
How to make a custom node edit form in drupal 7?
Hello!
Tell me, how in Drupal 7 to give the user the opportunity to edit a specific single node (different users have different nodes)?
I would like to do something like a mini-admin panel for the user, so that he can go to the page and see an edit form there with some fields (not all). It is necessary that this form stylistically matches the site, that is, the standard admin panel does not fit.
Tell me, please, in which direction to dig?
Thank you!
Answer the question
In order to leave comments, you need to log in
1. Rights to edit a particular node can be organized in several ways.
the decision depends on a number of related conditions:
- how many users and nodes,
- editing rights should be for individual users or roles, etc.
1.1 the simplest (if there are only a few such users and nodes) is to make nodes of different types, create a role for each user and set permissions for editing (role » node type).
1.2. or there are a number of modules for flexible access settings, you can choose which one is best for your tasks:
https://www.drupal.org/project/acl
https://www.drupal.org/project/content_access
https://www .drupal.org/project/nodeaccess
https://www.drupal.org/project/flexiaccess
1.3. https://www.drupal.org/project/field_permissions - the module allows you to grant rights to edit certain fields.
2. with the second part of the question is easier:
2.1. in the appearance settings (mysite.com/admin/appearance) disable the use of the admin theme for content editing (uncheck Use the administration theme when editing or creating content)
2.2. themize the form
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question