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
--
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