Skip to content

Releases: ntd/silverstripe-autotoc

entidi/silverstripe-autotoc 2.0.1 released

30 Dec 11:36
@ntd ntd
Compare
Choose a tag to compare

The silverstripe-autotoc module automatically generates the table of contents from the Content of a page or, more generally, from a specific DBString field of a DataObject.

The 2.0.1 is a bug fix release.

  • Properly honour the content_field settings instead of forcibly using Content.
  • Explicitly document that content_field must not be changed dynamically.
  • Add coverage support to Scrutinizer.

entidi/silverstripe-autotoc 2.0.0 released

29 Dec 09:54
@ntd ntd
Compare
Choose a tag to compare

The silverstripe-autotoc module automatically generates the table of contents from the Content of a page or, more generally, from a specific DBString field of a DataObject.

The 2.0.0 release is a big refactoring that pursues SilverStripe 4 compatibility. As such, many things have changed from the previous releases. For SilverStripe 3 compatibility please refer to the ss3 branch.

  • The module is now a vendormodule. This means entidi/silverstripe-autotoc is installed under vendor/.
  • Fix caching issues: now the cache is bound to the DataObject instance.
  • Added clearAutotoc method to clear the internal cache and force a recomputation.
  • Added APIs for accessing the augmented content field (getContentField) and the non-augmented content field (getOriginalContentField).
  • The format for augmenter_callback YAML option has changed: now it requires a string in the format class::method. Two ready to use callbacks are provided: 'eNTiDi\Autotoc\Tocifier::setId' (the default) and 'eNTiDi\Autotoc\Tocifier::prependAnchor'.
  • Greatly improved the testing experience.
  • Added PHP CodeSniffer support.
  • Checked and updated documentation.