SID-01219: WebTopMenu.txt file 'corrupted' by editor
| Status: |
Answered |
TWiki version: |
5.0.1 |
Perl version: |
v5.8.8 built for x86_64-linux-thread-multi |
| Category: |
TopMenuSkin |
Server OS: |
Red Hat Linux 5.6, kernel 2.6.18-238 |
Last update: |
14 years ago |
We recently migrated to
TWiki-5.0.1, Sun, 10 Oct 2010, build 19570, Plugin API version 1.3
We'd like to modify the
WebTopMenu to add convenient links for users. When we edit then simply save, without changing a single character, the file seems to get busted. I have to revert to a previous version to get the Top Menu back for the web. In looking at the files before and after I see this:
WORKS:
%INCLUDE{"%SYSTEMWEB%.TopMenuSkin"}%
<div class="twTopMenuTab">%STARTINCLUDE%
%INCLUDE{%SYSTEMWEB%.TopMenuSkinHomeMenu}%
BROKEN (after editor save):
%INCLUDE{"%SYSTEMWEB%.TopMenuSkin"}%
%STARTINCLUDE%
%INCLUDE{%SYSTEMWEB%.TopMenuSkinHomeMenu}%
The phrase "<div class="twTopMenuTab">" is missing.
In addition, the next line, the one that begins
-
- [[%BASEWEB%.%HOMETOPIC%]...
Gets completely re ordered and is now missing "<nop>" from the phrase <nop>%MAKETEXT{"[_1] Web"
I tried this in both Firefox and IE and the result is the same. We got this sort of working once by copying the original to Notepad, editing there, and copying the text back but even that is not working now.
Any thoughts on where to look?
Thanks...glenn
--
GlennStasse - 2011-06-30
Discussion and Answer
Argh, this WYSIWYG editor tends to corrupt system pages. Best to use the raw edit when editing system pages. You can restore a previous topic revision: Go to "More topic actions", then "Restore topic to revision".
--
PeterThoeny - 2011-06-30
Yep, that did it. Thanks, Peter.
Just a note to others. You have to use the
RawEdit link at the bottom of the page. Don't just change to raw (pick axe) mode after using the edit button at the top of the page. That will get you the same bad result.
--
GlennStasse - 2011-06-30
This is now fixed in the latest release of the
TopMenuSkin, see
TWikibug:Item6763
.
--
PeterThoeny - 2011-07-02
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.