filename: EliminateEditButtonsKupuProblem-details.txt
How to eliminate the Edit buttons for a certain Web.
I would like to eliminate the Edit button from the toolbar and from the topicactionbuttons,
only for a certain web (not for all site-wide webs).
I successfully eliminated the two Edit buttons for a certain Web,
But WYSIWYG editor does not save topic text
(i.e. WYSIWYG edit -> apply text -> save -> topic text apears -> WYSIWYG edit : no text, blank topic! ).
Change procedure:
# TWiki ver 4.0.5
# List of installed plugins
* SpreadSheetPlugin
* CommentPlugin
* EditTablePlugin
* InterwikiPlugin
* PreferencesPlugin
* RenderListPlugin
* SlideShowPlugin
* SmiliesPlugin
* TablePlugin
* WysiwygPlugin
# Web Server version: Apache 2.
# Server OS version: Linux 2.6.15-27
# Perl v5.8.7
# used Browser : FF1.5.0.8 IE6.0.2 FF2.0
Modifying few pattern skin template files:
1) file:
templates/viewtoolbar_H.pattern.tmpl (a copy of viewtoolbar.pattern.tmpl)
change :
%TMPL:DEF{toolbar_buttons}%
%TMPL:P{"activatable_raw_edit"}%%TMPL:P{context="WysiwygPluginEnabled" then="activatable_edit_wysiwyg"}%%TMPL:P{"activatable_attach"}%%TMPL:P{"printable"}%
%TMPL:END%
to:
%TMPL:DEF{toolbar_buttons}%
%TMPL:P{context="WysiwygPluginEnabled" then="activatable_edit_wysiwyg"}%%TMPL:P{"activatable_attach"}%%TMPL:P{"printable"}%
%TMPL:END%
2) and file templates/viewtopicactionbuttons_H.pattern.tmpl (a copy of viewtopicactionbuttons.pattern.tmpl)
change:
%TMPL:DEF{"edit_topic"}%%MAKETEXT{"&Edit"}%%TMPL:END%
to:
%TMPL:DEF{"edit_topic"}%%TMPL:END%
3) change templates/view.pattern_modi.tmpl (a copy of view.pattern.tmpl)
two lines:
%TMPL:INCLUDE{"viewtoolbar"}%
%TMPL:INCLUDE{"viewtopicactionbuttons"}%
to
%TMPL:INCLUDE{"viewtoolbar_H"}%
%TMPL:INCLUDE{"viewtopicactionbuttons_H"}%
4) and add a line at Web 'XXXX' WebPreference:
* COVER = pattern_modi
Resulting:
1) The two 'Edit' buttons are no longer showen (as expected)
2) BUT while editing a topic (in Web Modi) the WYSIWYG editor does not save topic changes
notes:
Happens using
FF 1.5 under Ubuntu
FF 2.0 under WinXp
IE6 under WinXp