Tags:
create new tag
view all tags

Question

I like to hide the Attachment Table at the end of the pages by default. Now the user must enable the Hide file checkbox manually. This checkbox should be checked by default. Is this possible and how?

I think i had read about that in the past, but now i cannot find anything.

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: NetBSD-2
Web server: Apache-1.3.33
Perl version: Perl-5.8.6
Client OS: all
Web Browser: all
Categories: Installation

-- StephanPietzko - 13 Jul 2005

Answer

If you are using pattern skin, you can modify style.css or add this to your user style:

.twikiAttachments {
    display:none;
}

Or you can modify view.pattern.tmpl (in templates dir) by changing:

%TMPL:DEF{"attachments"}%
<!--%TABLE{tableborder="0" cellpadding="0" cellspacing="0"}%-->
%META{"attachments"}%%TMPL:END%
... to:
%TMPL:DEF{"attachments"}%%TMPL:END%

-- ArthurClemens - 13 Jul 2005

I thought it is possible to set a value in the WebPreferences. And your solution is only possible when using pattern skin.

So I decided to add checked="checked" in the form. That works with every skin or template.

Many thanks

-- StephanPietzko - 13 Jul 2005

You can hide the attachment table of any other skin's template by voiding the code %TMPL:DEF{"attachments"}% as described above.

-- ArthurClemens - 14 Jul 2005

Why not add a variable "ATTACHHIDEBOX" with same behavior as "ATTACHLINKBOX" (so in WebPreferences and per topic) ? Another variable to completely hide attachment tables (per web and per topic) may be interested too.

-- YvesMartin - 28 Nov 2007

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-11-28 - YvesMartin
 
  • 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.