Skip to content
This repository has been archived by the owner on Jun 30, 2019. It is now read-only.

gibbs/phileTableOfContents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhileCMS Table of Contents

A PhileCMS plugin that automatically generates a table of contents based on a pages headers.

This is intended for internal use.

1. Installation

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

2. Plugin Activation

Activate the plugin in your config.php file:

$config['plugins']['gibbs\\philephileTableOfContents'] = array('active' => true);

3. Example Usage

<ol id="tableofcontents">
	{% for entry in tableofcontents %}
		<li><a href="{{ current_page.url }}{{ entry.hash }}">{{ entry.title }}</a></li>
	{% endfor %}
</ol>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages