[dokuwiki] Re: Error on TOC with latest version
- From: Chris Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Thu, 23 Mar 2006 18:14:28 +0000
Mark McCoy wrote:
On 3/23/06, Childs, Jeffrey <Jeffrey.Childs@xxxxxxxxxxxx> wrote:
Everyone,
Sorry about all of the confusion. The original problem quoted below in
parserutils.php is no longer occurring (don't ask me why, I have not changed
anything). However, no matter what template I use, I am getting the Table of
Contents problem, where the TOC is appearing to the left of the 'Table of
Contents' header. The only exception to this is using the default DokuWiki
template. Otherwise, with all of the templates I have tried, the TOC is
appearing incorrectly. Can anyone offer a reason for this? Andi, any
thoughts? I am going to try to look at PHP code, but my PHP is still at an
elementary level, so I'm not expecting much success.
This sounds more like a CSS issue, since the php code simply builds
the TOC and sets the id for the div containing the TOC. The browser
uses the CSS stylesheets to figure out where to place that div when
displaying the page.
Do the templates you are testing use the new css.php functionality to
wrap up all of the CSS files into one dynamically generated CSS
stylesheet?
Look into the lib/tpl/default/main.php and the same main.php file in
another template to see if they have the same CSS info in the header.
If you see the file loading up something like
$DOKU_BASE/lib/tpl/<templatename>/styles.css instead of
$DOKU_BASE/lib/css.php then it isn't using the new css handler. (I'm
at work right now, so I can't check to see if that's the correct path
for the css.php, but you get the idea...)
It shouldn't matter whether or not the template uses the new
functionality as long as the CSS is referencing the correct elements. I
have a feeling that in the work done to make dokuwiki xhtml strict
compliant some changes were made to either the id or classes associated
with the TOC.
Several of the templates have been updated since the March release of
Dokuwiki. Check the wiki:templates page at splitbrain for the details.
With this latest dokuwiki release it is definitely important to update
your template along with Dokuwiki. Apart from the xhtml strict inspired
changes there have been many other changes to improve the abilities of
templates to manipulate the Dokuwiki chrome and also to add search index
functionality.
If you do have a template problem it is probably best to email the
template author directly. However a note here won't do any harm as many
of the template authors subscribe to the list.
Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- References:
- [dokuwiki] Error on TOC with latest version
- From: Childs, Jeffrey
- [dokuwiki] Re: Error on TOC with latest version
- From: Mark McCoy
Other related posts:
- » [dokuwiki] Error on TOC with latest version
- » [dokuwiki] Error on TOC with latest version
- » [dokuwiki] Error on TOC with latest version
- » [dokuwiki] Re: Error on TOC with latest version
- » [dokuwiki] Re: Error on TOC with latest version
- » [dokuwiki] Re: Error on TOC with latest version
Everyone,
Sorry about all of the confusion. The original problem quoted below in parserutils.php is no longer occurring (don't ask me why, I have not changed anything). However, no matter what template I use, I am getting the Table of Contents problem, where the TOC is appearing to the left of the 'Table of Contents' header. The only exception to this is using the default DokuWiki template. Otherwise, with all of the templates I have tried, the TOC is appearing incorrectly. Can anyone offer a reason for this? Andi, any thoughts? I am going to try to look at PHP code, but my PHP is still at an elementary level, so I'm not expecting much success.
This sounds more like a CSS issue, since the php code simply builds the TOC and sets the id for the div containing the TOC. The browser uses the CSS stylesheets to figure out where to place that div when displaying the page.
Do the templates you are testing use the new css.php functionality to wrap up all of the CSS files into one dynamically generated CSS stylesheet?
Look into the lib/tpl/default/main.php and the same main.php file in
another template to see if they have the same CSS info in the header. If you see the file loading up something like
$DOKU_BASE/lib/tpl/<templatename>/styles.css instead of
$DOKU_BASE/lib/css.php then it isn't using the new css handler. (I'm
at work right now, so I can't check to see if that's the correct path
for the css.php, but you get the idea...)
- [dokuwiki] Error on TOC with latest version
- From: Childs, Jeffrey
- [dokuwiki] Re: Error on TOC with latest version
- From: Mark McCoy