[dokuwiki] Re: Template thoughts
- From: Chris Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sun, 26 Nov 2006 15:13:16 +0000
Mr Anchovy wrote:
What I would like is to enable a plugin to define the functions in
inc/html.php. Perhaps you could have a setting of $conf['html_php']
and do require_once(DOKU_INC.$conf['html_php']) instead of
require_once(DOKU_INC.'inc/html.php'). You may well have a better way.
I don't think that using a config setting is a good option. Better
would be to allow the file to be part of a template. e.g.
if (@file_exists(DOKU_TPL.'html.php')
require_once (DOKU_TPL.'html.php');
else
require_once(DOKU_INC.'inc/html.php);
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: Template thoughts
- From: Mr Anchovy
- [dokuwiki] Re: Template thoughts
- From: TNHarris
- References:
- [dokuwiki] Re: Template thoughts
- From: Mr Anchovy
Other related posts:
- » [dokuwiki] Template thoughts
- » [dokuwiki] Re: Template thoughts
- » [dokuwiki] Re: Template thoughts
- » [dokuwiki] Re: Template thoughts
- » [dokuwiki] Re: Template thoughts
- » [dokuwiki] Re: Template thoughts
What I would like is to enable a plugin to define the functions in inc/html.php. Perhaps you could have a setting of $conf['html_php'] and do require_once(DOKU_INC.$conf['html_php']) instead of require_once(DOKU_INC.'inc/html.php'). You may well have a better way.
- [dokuwiki] Re: Template thoughts
- From: Mr Anchovy
- [dokuwiki] Re: Template thoughts
- From: TNHarris
- [dokuwiki] Re: Template thoughts
- From: Mr Anchovy