[dokuwiki] Re: table of contents

  • From: Jason Keltz <jas@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 4 Aug 2007 11:52:41 -0400 (EDT)

Hi Markus,

The problem with the CSS stylesheet approach to defining what gets printed through a template seems to be that it is all or nothing. Most of our users don't care about the TOC getting printed, and in fact, in most cases it doesn't even make sense since DokuWiki doesn't come out of the box with numbered headline support. However, some of the users are used to MediaWiki where headlines can get auto numbered, and hence there is a "reason" for TOCs to get printed. I used the numbered headline plugin to provide numbered headlines. What might I need to do to give me a configuration option in DokuWiki for printing/not printing a template? I can think of a hack of defining a template that defines a new configuration option, but I can't think of what to do in the CSS stylesheet for printing to toggle whether the TOC gets printed or not IN the print.css.

Jas.

On Fri, 3 Aug 2007, Markus Frosch wrote:

Hallo Jason
this is an template issue.

You can configure the whole look and feel of DokuWiki by its templates,
this includes the print view.

Should should be able to find a print.css in your template directory.

If you change this line (in the default template)
.toc, .footerinc, .header, .bar, .user {display:none}
to
.footerinc, .header, .bar, .user {display:none}
the toc should appear on the printout.

You now have to copy the style information from design.css to print.css
and change it like you want the toc to look, without this the toc
appears just in basic html style.

Jason Keltz schrieb:
Hi.

In MediaWiki, the table of contents for a document is displayed in the
printed copy.  In DokuWiki, it looks like the table of contents is never
printed.  Am I missing the option in config to do this? or is this
always template dependent?

If I wanted to move the toc to being just under the H1 text, can I do
this in the printed copy without affecting the viewable copy?

jas.

Markus Frosch
--
markus@xxxxxxxxxxxxx
http://www.lazyfrosch.de
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: