# Table of Contents in a Right Panel

**URL:** <https://forum.xwiki.org/t/table-of-contents-in-a-right-panel/6843>\
**Category:** Help / Discuss\
**Created:** [May 13, 2020, 5:01pm UTC](https://forum.xwiki.org/t/table-of-contents-in-a-right-panel/6843 "2020-05-13T17:01:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![humbao](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/h/dbc845/32.png) [@humbao](https://forum.xwiki.org/u/humbao)\
**Post date:** [May 13, 2020, 5:01pm UTC](https://forum.xwiki.org/t/table-of-contents-in-a-right-panel/6843/1 "2020-05-13T17:01:08Z")

</div>

I am currently using the show/hide panels extension. Is there a way to put the table of contents macro for each page into the right side panel?

---

<div class="post-metadata">

**Author:** ![urs19work](https://forum.xwiki.org/user_avatar/forum.xwiki.org/urs19work/32/3076_2.png) [@urs19work](https://forum.xwiki.org/u/urs19work)\
**Post date:** [February 25, 2021, 5:56pm UTC](https://forum.xwiki.org/t/table-of-contents-in-a-right-panel/6843/2 "2021-02-25T17:56:32Z")

</div>

You can create your own panel with this code. It will show TOC of current page.

```
{{velocity}}
#panelheader('Table of Contents')
{{context document="$services.model.serialize($doc.documentReference)" transformationContext="document"}}
{{toc/}}
{{/context}}
#panelfooter()
{{/velocity}}
```

---

<div class="post-metadata">

**Author:** ![Dave47](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@Dave47](https://forum.xwiki.org/u/Dave47)\
**Post date:** [July 7, 2025, 7:07am UTC](https://forum.xwiki.org/t/table-of-contents-in-a-right-panel/6843/3 "2025-07-07T07:07:49Z")

</div>

Hey, I am using this panel and it works quite well. However there are no bullet points in front of each headline. They would be very helpful especially in long lists with line breaks. If I insert a ToC on a normal page, there are the bullet points. Does anyone know how I can fix this in the panel? Thanks!

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [July 7, 2025, 8:56am UTC](https://forum.xwiki.org/t/table-of-contents-in-a-right-panel/6843/4 "2025-07-07T08:56:27Z")

</div>

@Dave47 please open a new thread for a new subject. Thx.
