Recent Changes · Search:

Support the Project

Wikipublisher

PmWiki

edit SideBar

 

Is there syntax to prevent sections of text from being rendered in the HTML and/or PDF?

At the moment, it is possible to omit paragraphs of text from the PDF:

=<This text is omitted from the `PDF, but renders in `HTML as a regular
paragraph

=>This text is omitted from the `PDF, and renders in `HTML flush right

This text is omitted from the PDF, but renders in HTML as a regular paragraph

This text is omitted from the PDF, and renders in HTML flush right

For omitting longer blocks of text, add the following recipe to local/config.php:

 if ($format=='pdf') $WikiStyle['webonly']['display'] = 'none';

Then in the page, write:

>>webonly<<
This text only displays on the Web.
>><<

This text only displays on the Web.

If that works, you could also write this recipe (enabled for the current page):

  if ($format=='pdf') $WikiStyle['webonly']['display'] = 'none';
  else $WikiStyle['printonly']['display'] = 'none';

And so:

>>printonly<< 
This text only displays in print.
>><<

This text only displays in print.

Contributors: John Rankin, Gustav Andersson, Wednesday, 14 November 2007

Creative Commons License
Edit · History · Print · Recent Changes · Search · Links
Page last modified on 13 December 2007 at 08:25 PM