[pmwiki-users] hard page break in print view

Chris Cox ccox at airmail.net
Wed Oct 19 16:18:34 CDT 2005


Patrick R. Michaud wrote:
> On Wed, Oct 19, 2005 at 03:04:25PM -0400, Russ Fink wrote:
>>Thank you, that worked like a charm.  I echo your sentiment, is there some 
>>way to add this easily into a wiki markup, perhaps a style, (even a 
>>cookbook recipe) so that I can say something like,
>>%hardpage%
>>or even
>>(:hardpage:)
>>?
> 
> Try:
> 
>     $WikiStyleCSS[] = 'page-break-before';
>     $WikiStyle['hardpage'] = 
>       array('page-break-before' => 'always', 'apply' => 'block');
> 
> Then you can use %hardpage% on any element to force a page break
> before it, as in
> 
>     !! %hardpage% Why PmWiki is the best package ever
> 
> Pm

Yes!  Certainly can be added this way (though I'm not sure I could
have come up with that one myself).  Might be a good core add
at some point though.  Just a thought.






More information about the pmwiki-users mailing list