Back to top anchor
Documentation

Sector Table of Contents (Sector 10)

We are updating our documentation library to be ready for Sector 10! Find out more in our Sector 10 roadmap or head straight to our collection of Sector 10 - Changes and Updates.

User role
Content Editor Drupal Sitebuilder
Topic
Content editing
Product
Sector 10 Sector Starter kit Sector Starter theme

In-page navigation elements can significantly improve usability on longer pages. The optional Sector Table of Contents feature provides a simple ToC automated from headings in the main body content.  

See Sector Table of Contents in action!

Coming soon! 

Features and functionality

Sector Table of Contents is an optional module with in the Sector Starter Kit. It includes:

  • New block: Sector › Table of contents
  • New term in content options: Show table of contents
  • New embedded content entity: Table of contents
  • Theming

The basic Sector Table of Contents is available as part of the distribution since Sector 10 Alpha12. No need to install a new module—just enable the optional module! 

Get started

1 - Enable 'Sector Table of Contents' 

<your-domain>/admin/modules 

2 - Place the block 'Sector › Table of contents in the sidebar region

<your-domain>/admin/structure/block

  • Hide the block title and set a heading instead, for example 'On this page'
  • Choose your selector; h2 is default. You can add multiple selectors and separate them with commas. The selectors work based on CSS so you can use h2, h3, h4:first-child or summary for disclosures. 
  • Under Term, add 'Show table of contents' in the taxonomy term field, and choose 'Node from URL' in the node drop down selection.

3 - Clear both Drupal and browser caches

4 - To place your first ToC, head over to our editor guide


Change log

Nothing to see ... yet! 

Last updated

Sector 10 is coming!

Find out more in our Sector 10 roadmap.

Need Help?

Sector is brought to you by Sparks Interactive - supporting Sector from Wellington and Auckland

Open Source award winner!

Sparks Interactive are delighted to accept the Open Source Use in Business award for Sector and the Sector.nz open source platform.

Subscribe for Sector updates