Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
forum.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Sep 2010 at 12:53 UTC
Updated:
29 Jul 2014 at 19:03 UTC
Hello Guru's. Is it possible to hide the forum containers in the drop-down list when creating a new forum topic? I've been searching and assume it's an easy fix but can't figure it out. many thanks.
Comments
Comment #1
silverwing commentedI believe that being able to select a container from the drop down list actually a bug since doing so returns an error message.
Comment #2
penyaskitoI think that showing the containers makes user life easier locating the desired forum where he/she wants the topic to be placed, so IMHO hiding the containers from the option list is not a possible solution.
What would you expect to happen if you select a container as the forum instead of the error? Or how do you think that the forums available should be displayed to the user?
Comment #3
silverwing commentedShowing the container in the drop down list is a good thing, being able to select it is not. I re-titled this issue.
Comment #4
penyaskitoOne possible way of achieving this is adding to the markup of the option the attribute "disabled".
However, the Forms API doesn't support this, and this solutions seems to not work in older versions of IE.
Comment #5
develcuy commentedAdding tag "dlatino" for reference of the Drupal Latino community.
Comment #6
Traverus commentedOne could specify the containers as optgroups and is supported by the form api by doing nested arrays in #options. I'll work on a patch soon if time permits. This would be easy for a novice to do.
Comment #7
chi commentedHere is relative issue about optgroups:
#1407746: Support grouping in select list for term reference field
Comment #8
andypostThere's issue already #12089: Better method of showing forum containers in form