Summary | Indents / nests selected categories or subcategories in the sidebar | |
Repository | https://github.com/Lillinator/discourse-nested-categories | |
Preview | Preview on Discourse Theme Creator | |
Install Guide | How to install a theme or theme component | |
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
There are two ways to use this simple theme component - to select categories or subcategories to indent (or nest) in the sidebar; or to allow indenting all but a select list of categories. Most people will want to indent only subcategories of course, to make them look nested, but you can indent any of your listed categories. Works in both desktop and mobile view, as well as header drop-down menu. Thanks to @dax for some of the code.
There are 3 settings - only use the first one, or the second and third one, depending on what you need to do.
Setting | Description |
---|---|
indent only select categories |
List of selected categories or subcategories to indent. |
indent all categories except the following |
Enable this setting if you want to indent all categories except those in the list setting below. Above list setting must be empty. |
categories not to indent |
categories not to indent |
Screenshots of result in sidebar categories section: