Clean up the contact forms listing UI: Allow to set the default category and weights on the listing page

Created on 9 October 2009, over 15 years ago
Updated 17 May 2025, 1 day ago

Problem/Motivation

Currently the default weight property could be changed only by editing contact form.

Proposed resolution

Once we decide at πŸ› Create contact form block Needs work about weight property (2b or not 2b)
1) Allow to set default category within List UI
2a) Allow sorting on the same list builder
2b) Do not implement sortnig
3) cover with tests

Remaining tasks

cover with tests 1)
depending on state πŸ› Create contact form block Needs work extend patch or rtbc

<!-- See https://drupal.org/core-mentoring/novice-tasks for tips on identifying novice tasks. Delete or add "Novice" from the Novice? column in the table below as appropriate. Uncomment tasks as the issue advances. Update the Complete? column to indicate when they are done, and maybe reference the comment number where they were done. -->

User interface changes

1) Default category selected at the list
2) (?) Categories are sorted

API changes

ContactFormListBuilder should implement FormInteface or extend DraggableListBuilder class for weight property

Original report by @Dave Reid β†’

For D8 I'd really like to accomplish:
1. Implementing a drag/drop sorting of contact categories. We have a weights field, but we don't currently utilize it or allow people to change it.
2. Change the 'default' contact category to a radio on admin/structure/contact instead of having to edit the category you want to be the default and then saving the category. We should just implement this as a variable 'contact_category_default'

Related issues
#1855402: Add generic weighting (tabledrag) support for config entities (DraggableListController) β†’
#1891690: Use EntityListController for vocabularies β†’
#1803638: Improve default language change process (ui and help text) β†’

πŸ“Œ Task
Status

Postponed

Version

11.0 πŸ”₯

Component

contact.module

Created by

πŸ‡ΊπŸ‡ΈUnited States dave reid Nebraska USA

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024