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
--
GavinBloomer - 21 Feb 2007
Answer
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