phpsa / content-toc
A Statamic 3 addon to generate TOC for content
1.0.0
2020-11-06 02:10 UTC
Requires
- statamic/cms: 3.0.*
Requires (Dev)
- nunomaduro/collision: ^4.2
- orchestra/testbench: ^5.0
This package is auto-updated.
Last update: 2024-12-06 11:28:02 UTC
README
This repository contains the code for these widgets. While the code is open-source, it's important to remember that you'll need to purchase a license before using this addon in production. Licenses cost $5 and can be purchased from the Statamic Marketplace.
Installation
Install via the Control Panel or via composer
composer require phpsa/content-toc
Quick Usage
in your template:
{{content | toc:ids}}
to render your content with the TOC adding ids to the content
{{content | toc}}
to render your page contents
Documentation
Security
If you discover any security related issues, please email vxdhost@gmail.com instead of using the issue tracker.