# Feature request: Control whether section is expanded or collapsed

**URL:** https://meta.discourse.org/t/feature-request-control-whether-section-is-expanded-or-collapsed/344642
**Category:** Feature
**Tags:** doc-categories
**Created:** [December 28, 2024, 7:36am UTC](https://meta.discourse.org/t/feature-request-control-whether-section-is-expanded-or-collapsed/344642 "2024-12-28T07:36:25Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [December 28, 2024, 7:36am UTC](https://meta.discourse.org/t/feature-request-control-whether-section-is-expanded-or-collapsed/344642/1 "2024-12-28T07:36:25Z")

</div>

We are using the docs categories plugin for course navigation, which works great! One neat addition would be the ability to control whether sections are collapsed and expanded by default.

Using the original index template, something like this structure to control the state would be nice:

```plaintext
You can start with an optional brief description of the category.

## [Test external](#open)
* Google: https://google.com

## [First section](#closed)
* https://discourse.example.com/t/topic-title/12
* https://discourse.example.com/t/another-topic-title/34
* Short title: https://discourse.example.com/t/topic-with-a-long-title/56
* Another title: https://discourse.example.com/t/another-topic-with-a-long-title/78

## Second section
* Topic title: https://discourse.example.com/t/documentation-topic/98
* https://discourse.example.com/t/new-topic/76

```

---

_[View the full topic](https://meta.discourse.org/t/feature-request-control-whether-section-is-expanded-or-collapsed/344642)._
