Question
I have installed
TigerSkin on the TWiki beta from 7 May 2004. I have changed the edit.tiger.tmpl in order to get the preview button instead of save changes by copying the corresponding line from edit.tmpl. I have applied the patch for the
RefreshEditPage problem as well. The resulting template files are attached.
Now when I create a new topic by following a "?" link and preview my changes, at the top of the page the name of the parent topic is shown. However when I save the changes this is gone. I can switch to the default skin and set the parent for the topic manually. This is then displayed correctly with
TigerSkin. Further edits of the same topic using
TigerSkin leave the parent intact.
The parent is set correctly when I create the topic using the default skin.
Debugging so far has revealed that the %TOPICPARENT% variable is set in the edit page, no matter which skin I use. However it is empty when I preview the page using
TigerSkin. It is set when previewing with the default skin. I just can't find the reason why this is the case. Does anyone have an idea where to look next?
Environment
| TWiki version: |
TWikiBetaRelease2004x05x07 |
| TWiki plugins: |
DefaultPlugin, SpreadSheetPlugin, CommentPlugin, EditTablePlugin, InterwikiPlugin, RenderListPlugin, SessionPlugin, SlideShowPlugin, SmiliesPlugin, SyntaxHighlightingPlugin, TablePlugin, TigerSkinPlugin |
| Server OS: |
Suse Linux Enterprise Edition, kernel 2.4.21-smp |
| Web server: |
Apache 2.0.48 |
| Perl version: |
5.8.0 |
| Client OS: |
MS Windows XP |
| Web Browser: |
IE 6.0.2800.1106.xpsp1.020828-1920 |
--
HenrikWeber - 16 Jul 2004
Answer
Okay, I found it. In preview.tiger.tmpl there is a line:
<input type="hidden" name="parent" value="%TOPICPARENT%" />
This must be changed to:
<input type="hidden" name="topicparent" value="%TOPICPARENT%" />