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?
Мы использовали API для модификации контроллера редактора сообщений и добавления в него обработки ошибок. У меня нет под рукой последней версии кода, но она была примерно такой:
Короче говоря, этот код просто проверяет количество элементов в поле ввода категории и выводит ошибку, если их только один или ноль. Подкатегория всегда будет иметь два элемента ‘’. В этом фрагменте кода, который у меня остался, это реализовано с помощью jQuery. Полагаю, существовал ещё один вызов API для получения глубины категории.