Tags:
create new tag
view all tags
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

SupportStatus:
AnsweredQuestions
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formattmpl notedited.tmpl   manage 0.2 K 2001-03-16 - 17:34 UnknownUser notedited.tmpl
Unknown file formattmpl twikicatedit.tmpl   manage 0.2 K 2001-03-16 - 17:34 UnknownUser  
Unknown file formattmpl twikicatitems.tmpl   manage 0.9 K 2001-03-16 - 17:34 UnknownUser  
Unknown file formattmpl twikicatview.tmpl   manage 0.3 K 2001-03-16 - 17:34 UnknownUser  
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2001-05-19 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.