Tags:
create new tag
view all tags

Question

We output some of our pages as HTML, so they can be distributed to our customer. Mehod is to -> Select 'Printable' link -> Right Click -> Save As-> 'Web Page, HTML Only'.

Problem is, it saves the Edit buttons on tables which, if pressed, tries to access our intranet.

How do we suppress the 'Edit' controls?

Environment

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- GavinBloomer - 21 Feb 2007

Answer

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.

I do something like this (you might have to change the IF part based upon what your printable link does)

%EDITTABLE{editbutton="%IF{ "$'URLPARAM{template}'='viewprint'" then="hide" else=""}%"}%

-- KevinKalmbach - 21 Feb 2007

Look also into the Tag:export extensions, namely PublishWebPlugin and PublishContrib.

-- PeterThoeny - 22 Feb 2007

Thanks for your contributions, I tried Kevin's method, which gives much of what I want, except -

I have 3 pages

  • Template
  • Topic1 (editable)
  • Topic2 (non-editable

Topic1 is based on Template and has a number of editable tables. I have included the IF statement suggested by Kevin on the Template, and I'm passing a parameter into Topic1 that sets the edit buttons to visible. Topic 2, which is the page to output as HTML, uses topic1 as a template, and uses

%includes
to pull the sections onto the page. The problem is that the parameter is being replaced by it's value on Topic1, so when Topic2 does the include, it's parameter does not get used i.e., the line on Topic 1 looks something like
editbutton="%IF{ "'$ ON'='OFF'" then="hide" else=""}%"

-- GavinBloomer - 22 Feb 2007

Closing this question after more than 30 days...

-- PeterThoeny - 02 Apr 2007

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-04-02 - 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.