web-illinois / illinois_framework_theme

An Illinois branded Drupal theme based off of the bootstrap4 theme.
5 stars 1 forks source link

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

Open trubach opened 6 months ago

trubach commented 6 months ago

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.