A PhileCMS plugin that automatically generates a table of contents based on a pages headers.
This is intended for internal use.
Install via git
Clone this repository from the phile
directory into
plugins/gibbs/phileTableOfContents
. E.g:
git clone git@github.com:Gibbs/phileTableOfContents.git plugins/gibbs/phileTableOfContents
Manual Install
Download and extract the contents into: plugins/gibbs/phileTableOfContents
Activate the plugin in your config.php
file:
$config['plugins']['gibbs\\philephileTableOfContents'] = array('active' => true);
<ol id="tableofcontents">
{% for entry in tableofcontents %}
<li><a href="{{ current_page.url }}{{ entry.hash }}">{{ entry.title }}</a></li>
{% endfor %}
</ol>