Git Product home page Git Product logo

silverstripe-autotoc's Introduction

silverstripe-autotoc

License Build Status Code Quality Code Coverage Latest Stable Version

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

Other documentation

silverstripe-autotoc's People

Contributors

ntd avatar scrutinizer-auto-fixer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

silverstripe-autotoc's Issues

i tried to use this module, but it did not seem to work

Hi,

I installed this module, it worked great, except that IDs not inserted into HTML content => links do not work in TOC. What did I do wrong?

Also, why not extend HTMLText and add the Tocification in there as a method, just like Nice or Summary. This will just add the anchors.

Thank you

Nicolaas
PS found your module here: http://ssmods.com/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.