This has been plaguing me for a while, and while I’m sure it’s something simple, I’m stuck. I’m trying to create a sidebar menu that lists only what is inside a specific folder. This code:
—html
{% for p in taxonomy.findTaxonomy({'category':page.taxonomy.category}) if p != page %}
```
Mostly does the trick. However, if I click on one of the links it creates, the menu changes and the menu rebuilds listing all of the folders at the top of the structure. So if my menu starts like this:
---
Layout (folder)
Header (page)
Grid
Lists
Elapsed Time
Timestamp
Avatar
HR
Lists
Ordered Lists
Unordered Lists
Navigation
Primary Navigation
Breadcrumbs
Pagination
Tabs
User Input
Typeahead
Select Menu
Text Fields
Checkbox
Radio Button
Search
Actions
Link States
Default Buttons
```
It ends up with this at the top:
```
Patterns
Layout
Navigation
Data-display
Data-controls
Formatting
User Input
Actions
Layout
Header
Grid
Lists
Elapsed Time
Timestamp
Avatar
HR
Lists
Ordered Lists
Unordered Lists
---