This category has a bunch of subcategories. “Robotics”, “Programming”, etc.
So far users can post in “Help & Support”.
Our issue is that nobody is choosing a subcategory.
We would like to limit posting to only those subcategories.
One solution would be to lock the “Help & Support” category. However, we tested this options and since this disable the “New topic” button, people stopped posting there altogether.
Is there a way to keep a category open but configure the minimum depth level of subcategories selected?
Ideally, the current category (“Help & Support”) would be preselected and people would only need to click and select the subcategory.
Does anyone have an idea on how we could achieve this or similar behavior?
Wir haben die API verwendet, um den Post-Composer-Controller zu modifizieren und einen Fehler hinzuzufügen. Ich habe die neueste Version des Codes nicht zur Hand, aber es sah ungefähr so aus:
Kurz gesagt, sucht dies einfach nach der Anzahl der Elemente in der Kategorie-Eingabe und gibt einen Fehler aus, wenn es nur eines oder keines gibt. Eine Unterkategorie hat immer zwei Elemente ‘’. In dieser Version des Snippets, die ich noch herumliegen hatte, wurde dies über jQuery umgesetzt. Ich glaube, es gab einen weiteren API-Aufruf, um die Tiefe einer Kategorie zu ermitteln.