This is a follow-up for #1825044: Turn contact form submissions into full-blown Contact Message entities, without storage

Problem/Motivation

The patch provided in #1825044: Turn contact form submissions into full-blown Contact Message entities, without storage converts Contact Categories into tabs, so users have different and fieldable! forms).

The main issue here is that created tabs are grouped at the top of the contact form. A reasonable feature request for D8 will be, How can I remove those tabs, I already have a menu pointing to that...

contact-form-tabs.png

This is also one of the reasons why issues like this #183678: Select Category via URL in Contact Form exists.

Proposed resolution

Add a option to determine it the Contact Category will create or not a tab above the contact form.

Remaining tasks

Write a patch

User interface changes

@todo

API changes

@todo

CommentFileSizeAuthor
contact-form-tabs.png24.89 KBdagmar
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sun’s picture

Title: Hide tabs for Contact Categories » Allow to configure which contact categories should appear as tabs on contact form
Category: feature » task
Status: Active » Postponed

Slightly revising issue title.

sun’s picture

Title: Allow to configure which contact categories should appear as tabs on contact form » Expose contact category-specific forms and/or their URLs somewhere
Status: Postponed » Active

The actual category-specific forms and their URLs are currently not exposed anywhere, since that functionality was removed from the committed patch.

So let's discuss how we want to handle and expose contact category forms here.

andypost’s picture

The easiest way to fix this to implement a menu-link creation on Contact Category form to allow user decide
Another solution to add a form "a-la jump-menu" to quickly navigate a needed form

andypost’s picture

There's a duplicate issue with different approach #1997692: Create contact form block

discipolo’s picture

instead of a menu creation link a checkbox that adds a tab to the site contact form like in the screenshot might be more practical. a menu item for the global contact form already exists and category specific links can easily be created manually (maybe a help text to that extent along with the checkbox).

possibly just having a "view" tab when editing contact form categories would help to get to the specific url. also having the category name in the breadcrumbs or title of the edit categories page might be helpful

andypost’s picture

Issue summary: View changes

Suppose contact categories already exposed to their URLs,
so probably it makes sense to add another block that displays a whole form in selected display mode?

Also links in block from #1997692-24: Create contact form block could be altered to display site wide contact form in modal

andypost’s picture

Status: Active » Closed (works as designed)

Each contact category already displayed at separate page, so only navigation should be solved in #1997692: Create contact form block