This is an old revision of the document!
Table of Contents
noprint plugin
Compatible with DokuWiki
2009-02-14b (possibly earlier)
The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on dokuwiki.org. Recommended are public repository hosts like GitHub, GitLab or Bitbucket.
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to wrap
Download and Installation
Download and install the plugin using the Plugin Manager using the following URL. Refer to Plugins on how to install plugins manually.
Features
The noprint plugin removes certain sections of pages from the printout by simply adding a span-tag and using CSS.
Todo
- Currently the TOC can't be hidden. I just removed the TOC from every printout by specifying the following in your template's print.css:
div.toc { display: none; }
- The plugin wasn't developed using Enter and Exit Patterns, because then it wouldn't render headlines (the old problem). Instead it just replaces the two patterns with HTML.
- Currently only German and English are supported languages. Feel free to translate the one sentence :)
- I somehow needed to close a div before opening my span to correctly embed it. That renders pages, where you put the noprint-code at the top, a bit different. Perhaps someone can help me with this.
Usage
Use the following code to start a non-printing section:
<noprint>
and the following to stop it:
</noprint>
Anything between these two tags will be hidden while printing.
Changelog
- 2009-09-10: Initial release
- 2009-11-20: Added french translation (Thanks to Guillaume Turri)
Discussion
If you have problems using the problem, don't hesitate to ask:
conflicts withh sidebar
problem: In using sidebar-plugin noprint-plugin overwrites the existing formating, so that the sidebar disappers. Maybe this is due to sortorder — deshi