silverstripe-autotoc 

silverstripe-autotoc Git Change Log

Age Message
4 years 8 months Merge branch 'dev'
4 years 8 months Remove some redundancy from XPath expression
4 years 8 months Add tests for data-hide-from-toc
4 years 8 months Avoid bogus \n when augmenting the HTML
4 years 11 months Added standard Scrutinizer config
4 years 8 months Allow easy testing from CLI
4 years 8 months Merge branch 'master' into dev
4 years 8 months Merge pull request #7 from Cheddam/bug/minimum-php-version

Add minimum PHP version requirement
4 years 8 months Added minimum PHP version requirement.
Commit 1bd030b1ce5c1824c858107c09de273fcecc54e5, by Garion Herman
4 years 8 months Merge pull request #6 from Cheddam/feature/hide-from-toc-attribute

Add `data-hide-from-toc` attribute to ToC query
4 years 8 months Added `data-hide-from-toc` attribute to ToC query.
Commit a71b0b9bf77370c8f514332430dd75a3f0b0fbde, by Garion Herman
4 years 11 months Update copyright for 2016
4 years 11 months Add Scrutinizer badge to README.md
5 years 1 day Merge pull request #4 from helpfulrobot/add-standard-gitattributes-file

Added standard .gitattributes file
5 years 3 days Added standard .gitattributes file
5 years 10 days Merge branch 'dev'
5 years 10 days Add TravisCI badge in README.md
5 years 10 days Merge branch 'dev'
5 years 10 days Correct README.md typo
5 years 10 days Add Packagist stable version badge to README.md
5 years 10 days Improve README.md

Added latest news and some missing information.
5 years 10 days Merge branch 'pr2' into dev
5 years 10 days Improve tests interoperability

Avoid relying on being in a specific path by using __DIR__ and drop
manual inclusion of files.

This should make the project TravisCI ready so I can merge the
ntd/silverstripe-autotoc#2 pull request.
5 years 10 days Tocify custom field instead of Content

Although the "Content" field is the main candidate for
silverstripe-autotoc, do not assume it. Allow instead to customize the
field name on a class basis by setting the MyClass.content_field
property via YAML, e.g.:

ProductPage_Controller:
content_field: 'Details'
AuthorHandler:
content_field: 'Biography'

Keep in mind Autotoc must be applied to a *controller*.

If not specified, 'Content' is assumed so backward compatibility is
retained.
5 years 11 days Empty lines after class are not needed in PSR-2 mode