Question
I'm trying to set up a number of topics which can onnly be edited via forms for most users. I defined a template & form, both work and I can use the normal edit fine.
I tried to copy the
ViewUserTemplate, and that is where my problems start...
- I don't get the toolbar at the top at all (this is not in the TWiki web) presumably the include of "view" doesn't work?
- I don't retain the value of a drop-down selection, it always reverts to the original (or perhaps first) value. Confusingly I tried altering the form to determine if it was just the first and it continued to display the same value, even though that was not in the data topic text or the form topic when I examined via ftp.
- I used Set to define the VIEW_TEMPLATE, as I don't understand the reference in the documentation to using Local - should I have set an EDIT_TEMPLTE too? NewUserTemplate doesn't - I don't know how that META:PREFERENCE got into it, I've not put anything like that into mine, as I don't see who to maintain it..
- I changed the URL from view to edit to let me alter the text and try again - and I was editing an earlier version of the topic!
- I can't get a button with a script call to edit to work. I mean that it runs, saves the data, shows the changed data - and a subsequent edit reverts to an older form. I suppose this is related to the previous item, is the revisioning throwing up older data?
Help! I've been using TWiki for ages, but this is the first time I've been asked to implement some topics without the edit text area. I' was going "swimmingly" until I hit this and the whole development has ground to a halt.
Environment
--
ChrisHogan - 12 May 2006
Answer
- Doh! spaces in the selection list explains the failure of the drop-down to retain its value.
- Implementing via a button I had two references to the topic property - one on the call to the script and one on a hidden value - which naturally didn't have the GTTIME - so are all these problems version control related?
Just leaves Set / Local and why my template doesn't include view
--
ChrisHogan - 12 May 2006
Chris - I ain't got no answers for you but I'm about to embark on a similar project so please do share what you figure out!
--
LynnwoodBrown - 12 May 2006
Chris, you could stop by Codev.IRC and chat to Drusilla (
MeredithLesly) about this one; she uses same functionality a lot (I am not sure she follows the Support web).
--
SteffenPoulsen - 16 Jun 2006
That "META:PREFERENCE" stuff is set by "Edit settings" found under "More topic actions" the lines are of the form
* Local VIEW_TEMPLATE = YourView
without the "Template" suffix on the end. Another caveat is that the search path is long and complicated, such that the UserView template is actually the PatternSkinUserViewTemplate when using that skin
--
AaronPeterson - 08 Aug 2007