entidi / silverstripe-autotoc
Dynamically generate the table of contents from $Content
Installs: 3 181
Dependents: 0
Suggesters: 2
Security: 0
Stars: 7
Watchers: 3
Forks: 3
Type:silverstripe-vendormodule
Requires
- silverstripe/framework: ^4.0
Requires (Dev)
- phpunit/phpunit: ^5.7
- squizlabs/php_codesniffer: ^3.0
Suggests
- entidi/silverstrap: A theme that supports silverstripe-autotoc out of the box
README
Automatically generate the table of contents from the Content of a page or, more generally, from any HTML field.
This module can be used without the CMS.
Installation
composer require entidi/silverstripe-autotoc
Manual installation is probably possible but not really tested.
Testing
Basically it boils down to the following commands:
composer update
vendor/bin/phpunit