Problem/Motivation

There's long-lasting issue to allow navigation for contact forms - #1997692: Create contact form block
Also #599770: Clean up the contact forms listing UI: Allow to set the default category and weights on the listing page changes a way how forms are sorted.
So currently no way to expose links to contact forms in UI.

Proposed resolution

- block with sortable links that navigate contact pages, configuration option to expose forms with modal API
- provide WYSIWYG integration plugin to use contact forms within content, probably separate issue
- test coverage

Remaining tasks

discus, patch, commit, update core issue

User interface changes

tbd

API changes

no

Comments

andypost’s picture

larowlan’s picture

FWIW you can do this with an Entity Reference field on a block-content type.
You can even do inline forms (between other fields) if you use entity_embed, or a contact form paragraph type (contains an ER field to contact forms).

In light of that, I think this one is done?

Thoughts @andypost?

Berdir’s picture

That or just a plain old menu, yes. I still don't quite understand the use case for the core issue.

As written in #1997692: Create contact form block, I think a much better way of migrating categories from 6.x/7.x would be to make a category field as a term reference or so and just add that as a field to the default form.

The only problem is that we'd need to be able to send different mails to different recipients based on that reference. Which is relatively easy to do in custom code or rules, we did that in a project, I might have even opened a feature request for a generic solution. We're also looking into https://www.drupal.org/project/courier at the moment, might be interesting to tie that to contact forms as well.

andypost’s picture