Question
I create a new Web in my TWiki and added a category table with a radio button group with five buttons.
When one of us edits the page, none of the buttons are selected; if you set the button and preview/save, the value is displayed during view. If you edit the page again the button is unset in the edit display and if you save it is unset in the display.
I would have expected the previously set value to be preserved in the edit display so that editors don't have keep resetting the button for every edit.
I have attached the template files I'm using to this topic
.
- TWiki version: 01 Dec 2000
- Web server: apache_1.3.19
- Server OS: solaris 2.7
--
DavidEves - 16 Mar 2001
Answer
Not sure where the problem is. TWiki is designed to parse an existing category table when you edit a page and takes the current table settings to set the HTML widgets in the form. For test I added your DocType radio line to the twikicatitems.tmpl file of my local Know web and I got the result as expected. Can you test if the Know web of your TWiki installation works as expected?
--
PeterThoeny - 19 Mar 2001
Experienced the same problem on HP-UX 10.20,
so I just was looking for a solution here...
As proposed, I cross checked the Know web - that one works.
So I guessed it's in the templates,
which I couldn't resist to tweak a bit.
That resolved the problem:
Saved the topic once with the stock template.
Then edit would remember the last category settings.
Now the
real question is:
what are the hidden requirements how to embed the %CAT ... statements?
--
PeterKlausner - 29 Mar 2001
Had the
identical problem on a Linux-installed TWiki - changed all three templates, it looked and worked fine through save and redisplays of a topic, but the cat table reset when you hit Edit.
The
magical mystery fix involved the templates, as mentioned above. Original changes included replacing all fields in twikicatitems.tmpl, and nesting table-in-table (nice borders) in twikicatedit.tmpl and twikicatview.tmpl. Swapping in original Know templates seemed to be the key - UNFORTUNATELY, I forget what it came down to, but it wasn't very specific. I'm fairly sure reentering the changes in a fresh copy of the original twikicatedit was as precise as it got.
Anyhow, it all works now - with nested tables, background cell images instead of color, extra junk like that - for no obvious reason. I checked for hidden characters and saving in UNIX format (editing with TextPad on Win98), also, permissions on server - nothing unusual. Starting fresh did it... Hope that helps.
--
MikeMannix - 12 Apr 2001
There is some limitation for naming the category items. Safe characters are
[a-zA-Z0-9_ ], so
ProgramAuthors is OK,
Program Authors too, but not
ProgramAuthor(s).
--
PeterThoeny - 11 May 2001
That was
definitely not the reason for the problems I encountered.
Another hypothesis:
maybe the %CATNAME and %CATVALUE pairs have to be in a single line?
Test: after changing the twikicatedit.tmpl this way,
it was broken!
But: undoing this change does not fix it!?
--
PeterKlausner - 14 May 2001
Not sure what went wrong. Your best bet is to restore to the sample
twikicatitems.tmpl files you find in the Know web of the TWiki distribution and extend it from there.
--
PeterThoeny - 18 May 2001