Tags:
create new tag
view all tags

SID-00086: HowToHideTOCFromPrintableView

Status: Answered Answered TWiki version: 4.2.1 Perl version: 5.8
Category: CategoryMissingFunctionality Server OS: Windows 2003 server Last update: 17 years ago

Hello,

How can I prevent the TOC from appearing in the printable view of a topic (cover=print)?

Sometimes TOCs can be very long, and they are not useful in the printed version of a topic.

Thank you! Kathy

-- KathyDeLaCruz - 05 Feb 2009

Discussion and Answer

Note: I am working on a topic, that will be a report including several other topics, all with the same headers (each department has their own topic, formatted the same with the same headers).

When I include the topics for each department, each TOC variable expands to include ALL the headers in all the included files.

Example: each department's topic has 2 headers in its TOC, "Recommendations for Improvement", and "Actions to be Taken". When I include 4 departments' topics in this topic I want to be the report for all departments, I get this in each TOC:

Recommendations for Improvement

Actions to be Taken

Recommendations for Improvement

Actions to be Taken

Recommendations for Improvement

Actions to be Taken

Recommendations for Improvement

Actions to be Taken

Does anyone know how I can stop this?

Thanks!

-- KathyDeLaCruz - 05 Feb 2009

On TOC: Not sure. Try a conditional TOC with an IF based on URL parameter on print view. More at VarIF, IfStatements.

On INCLUDE, insert STARTINCLUDE below the TOC.

-- PeterThoeny - 06 Feb 2009

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title HowToHideTOCFromPrintableView
SupportCategory CategoryMissingFunctionality
TWiki version 4.2.1
Server OS Windows 2003 server
Web server apache 2
Perl version 5.8
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2009-02-06 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.