DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:noprint

This is an old revision of the document!


noprint plugin

Compatible with DokuWiki

2009-02-14b (possibly earlier)

plugin Hides parts of a page on printout.

Last updated on
2009-11-20
Provides
Syntax
Conflicts with
sidebar

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

Tagged with export, hide, printing

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

plugin/noprint.1262079438.txt.gz · Last modified: 2009-12-29 10:37 by 94.217.5.182

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki