diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-08-05 15:24:05 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-08-05 15:24:05 +0200 |
commit | b8595a660455f6778266779753c6238127664a28 (patch) | |
tree | 29e0a132e510d6b98f1985b9f4e876a5351d3e64 /inc/parserutils.php | |
parent | 71f7bde7834ef576e5312e68d5e739bfe70afbcb (diff) | |
download | rpg-b8595a660455f6778266779753c6238127664a28.tar.gz rpg-b8595a660455f6778266779753c6238127664a28.tar.bz2 |
separated TOC from page
This patch introduces a tpl_toc() function which can be used to freely place
the Table of Contents in a template. When used, tpl_content should be called
with a parameter of false to supress the automatic TOC placement.
Note: if tpl_toc() us run *before* tpl_content(), TOCs will not work in the
preview. A work around is to run tpl_content() in a output buffer first.
This patch also adds a getTOC() function for admin plugins which allows plugin
authors to put create their own TOC which will be placed correctly in the
template. A convenience function html_mktocitem() is available.
The config manager was adjusted to make ue of this new feature, but some bugs
might remain.
darcs-hash:20070805132405-7ad00-77d2c3cdf66cc62b2d408cc6580f938636a109af.gz
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r-- | inc/parserutils.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php index 20971ac03..e4e51c5a5 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -1,6 +1,6 @@ <?php /** - * Utilities for collecting data from config files + * Utilities for accessing the parser * * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author Harry Fuecks <hfuecks@gmail.com> |