BreakPage-Talk
This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.
Comments
Sometimes authors would like to be able to break large PmWiki pages into smaller chunks to improve readability. This recipe adds a (:breakpage:)
markup to allow an author to specify where to split the page. (:breakpage:)
also provides a "Page 1 2 3 ..." set of links at the bottom of each page to allow navigation to other chunks of the page. The bottom of this page demonstrates the use of (:breakpage:)
directive.
This recipe only enables (:breakpage:)
when browsing pages; other actions (e.g., ?action=print
simply ignore (:breakpage:)
directives.
To enable this recipe, simply place the breakpage.phpΔ script in your cookbook/ directory, then add the following line to your config.php:
include('cookbook/breakpage.php')
- Usage note
- If your page also includes
(:nogroupheader:)
or(:nogroupfooter:)
directives, you will need to mention them in each page section. This is because PmWiki processes these after it has processed any(:breakpage:)
directives.
(:breakpage:)
after the (:nogroup(header|footer):)
directives. What do you think? --Pm
19-Feb-2005 what about i18n? is BreakPage able to use XLPage translating words for "Page" and "edit"? Please adjust it. I don't know how. (i can change it in the source but thats not Wiki-like.) newmy
23.3.206 (:toc:) directive in the beginig of the document shows the headings only of the 1st page, not of the whole document. How to fix it? Jiri
March 27, 2005 - Can we have this behaviour added automatically, say, for each first header (h1) and h2? How do you suggest this could be done? A markup change? Thanks --m