I am trying to create a form that allows a user to see multiple existing nodes and modify them. Forms are easy enough to create, but I want the form to be able to display existing nodes, and allow the user to make changes to them.

Comments

wellsys_world’s picture

Hi laststraw,

Do you have your module code you can post?

I'm guessing you'll need to use node_load() to fill in the form and then a combination of node_load and node_save in a submit handler.

Module code would really help though

Andy Wells
Web and Drupal Development
Fluid: Drupal in Derby

DanZ’s picture

Do you want a full display of all the existing nodes, with all of them editable at once? You're going to want to use Views to get and display the list of forms, I think.

Or, do you want a listing of the summary of the nodes, with an "edit" link for each item on the list? You can use EntityAPI to automatically set up a management page for editing (and creating, and deleting, if you want). See http://drupal.org/node/1021576 for simple directions on how to set that up.

--
www.ztwistbooks.com. Math books that are actually fun.

findmashmind’s picture

Load node form to the panel with "node id" argument. Then you can edit node form without develop custom forms.
1. Create a panel page with path node/%node/....
2. Set argument - node id
3. Set relationship on context page "Node edit form from node"
4. Go to the content tab and add form edit form

Then check your path.