---
title: "Table of Contents\n"
space: "Framework"
url: "https://docs.frappe.io/framework/user/en/guides/portal-development/table-of-contents"
updated: "2026-02-17"
---


You can add a table of contents by adding `{index​}` string on a new line.

You can also make Previous and Next buttons by adding `previous` or `next` in `{}`

### Showing contents

 # This is a title

 Hello paragraph

 ### Contents:

 {index​} will render as a numbered list of pages, but works only in `index.md` or `index.html`.

 {next​} for this Page will render as:

 {next}
