I'm trying to figure out a way of presenting a user with a dynamic page where they can enter some information, then click a button to add a new input field in which they add more information. Each line would be saved as a separate node - but all nodes saved would be 'bundled' together..

As an example, imagine a user entering a list of college courses, all on one page (representing a single semester). They'd fill in some fields to describe a course, then click "Add New Course", which would create a series of new input fields where they'd add a new course.

The number of courses is different from semester to semester, so having a pre-set number of input fields would not work.

When the user has input of content for all courses in that semester, they'd click "Save Semester" and all nodes (courses) are saved, but 'bundled' together as a semester.

Anyone have any idea on how this can be done?

Comments

Flying Drupalist’s picture

I'm looking for the same thing too.

WorldFallz’s picture

what about using node references and the http://drupal.org/project/nodereferrer_create module?

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

Flying Drupalist’s picture

Those are node relationship modules, but doesn't dynamically add fields to the input form.

WorldFallz’s picture

A node relationship with bundled related node creation is exactly what the op describes. Another option closer to using fields might be to use the formblock and panels module.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

Flying Drupalist’s picture

Those modules do not bundle node creation. After all, you can't refer a node that doesn't exist yet. What's needed is a way to dynamically create fields inside a form, and then submit the whole package at the same time.

WorldFallz’s picture

i'm not trying to be argumentative, but they do bundle node creation, just not exactly the way you'd like (on the initial node form). You might be able to do it by setting up the forms in blocks then combining them into a single panel page with the panels module.

Another option might be to theme the form and include the other form with drupal_render_form.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

Flying Drupalist’s picture

Thank you for your help. I don't think it's possible to do with panels.... And well, for it to be bundled, I really consider submitting at the same time a necessary requirement, rather than submitting separately and linking together.