Add field when adding new content in Drupal

163 views Asked by At

I'd like to ask a tricky question to you about Drupal.

I created a new content type which includes lots of fields.

I want to find a module that adds a 'Add another' link to the adding content screen which will duplicate certain fields.

Example:

I have fields named Panel1 Photo, Panel1 Info, Panel2 Photo, Panel2 Info...

When adding a new content of this type, if I want to enter 3 panels, I want this module to create 3 fields of Photo and Info for me, and maybe 4 or 5 at other times.

I hope you will understand what I ask.

Thank you in advance.

2

There are 2 answers

3
Joel Johnson On BEST ANSWER

You could have each field set to allow multiple values which would put the add another button you talk about. If you make a field collection with the field collection module you will be able to group those fields together and you can allow multiple values for the field collection. Let me know if you haven't found the add another button.

0
trkest On

Install the field collection module then in the content type create a field collection with panel and photo fields.

When you create your first content page you will start with one panel and photo and a + button. The + button gives you the ability to create ever more panels and photos grouped together.