Skip to content

Contact paragraph: issue with >1 contact within the same paragraph #223

Description

@trubach

Describe the bug
The contact paragraph has the option to add additional contacts within the same paragraph. However, when viewing the page, only the first contact shows. The workaround is to add another contact paragraph and only have one in it.

To Reproduce

  1. Add a "Contact" paragraph to a content page.
  2. Fill out the first contact info
  3. Click the "Add Contact Content" button to add a 2nd contact
  4. Fill out the second contact info
  5. Save and view the page. The 2nd contact will not show up on the page display

Expected behavior
The 2nd contact will display on the page

Example
An example of this issue can be found on the Drupal Sandbox page at https://drupal-sandbox.webtheme.illinois.edu/paragraphs/contact

The last contact paragraph (Dr. Derek Nolan) has two contacts in it, but only one shows up.

Additional context
We could either restrict the Contact paragraph to only allow one "Contact Content" sub-paragraph, or update the template to display it correctly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions