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

silverwing’s picture

Comment #1

silverwing commented
Version: 6.19 » 8.x-dev
Category: support » bug

I believe that being able to select a container from the drop down list actually a bug since doing so returns an error message.

penyaskito’s picture

Comment #2

penyaskito
he/him
Primary language Spanish
Location 🧑🏽‍🌾 Seville 💃 Andalusia, UTC+2 🇪🇺
commented

I 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?

silverwing’s picture

Comment #3

silverwing commented
Title: Hide forum container from drop-down in create forum topic » Forum container should not be a selection choice from drop-down in create forum topic

Showing the container in the drop down list is a good thing, being able to select it is not. I re-titled this issue.

penyaskito’s picture

Comment #4

penyaskito
he/him
Primary language Spanish
Location 🧑🏽‍🌾 Seville 💃 Andalusia, UTC+2 🇪🇺
commented

One 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.

develcuy’s picture

Comment #5

develcuy commented
Issue tags: +dlatino

Adding tag "dlatino" for reference of the Drupal Latino community.

Traverus’s picture

Comment #6

Traverus commented
Issue tags: +Novice

One 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.

chi’s picture

Comment #7

chi commented
andypost’s picture

Comment #8

andypost
he/him
Primary language Russian
commented
Status: Active » Closed (duplicate)