Tags:
create new tag
, view all tags

Question

Hi Folks,

I am curious if there is a simple way to stop a particular paragraph or included topic from being printed, by commenting it somehow?

I have a menu bar that I built as its own topic, and it is included on all new pages created.

I'd like to tell it not to be included on the page when we print, and I'd like to be able to do that without editing the print.css file, if possible.

Other random uses would be to tell certain logos and graphics at the top of a page not to print. Some groups create elaborate header graphics on their webs, and I'd like to bypass those when printing.

Is there any kind of tag or code (such as ) that I can use to locally tell a paragraph or object not to print?

Many thanks for any suggestions...

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS: Mac OS 10.4.9
Web Browser: Firefox 2
Categories:  

-- StevenHall - 26 Mar 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

we often use the html comments to hide topic content

ie

<!-- this is a comment -->

-- SvenDowideit - 28 Apr 2007

Reopening this question, Steven is looking for a way to suppress marked content in print, bit to have it shown normally in topic view.

-- PeterThoeny - 28 Apr 2007

Oops, thanks - answering too many things too fast :/

ok, printint seems to be done, by adding ?cover=print to the url, so IfStatements suggests to me, that you could use an IF statement like

%IF{ " $cover = 'print'" then="hidden" else=""}%

either as to set a css class, or to contain the text (if its simple and small)

-- SvenDowideit - 29 Apr 2007

Closing this after more than 30 days inactivity; re-open if needed...

-- PeterThoeny - 02 Jun 2007

 
Change status to:
Topic revision: r5 - 2007-06-02 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.