On Tuesday, 31 July 2007 12:13 PM, Sameer Kumar <[EMAIL PROTECTED]> wrote: > >Further issues with Wikiforms: > >For multiple input boxes, I used the (3*50) markup to get three >input boxes for a certain item. >In the form, I get these three boxes with 60;value=61; filled >in70; How can I avoid that? Interestingly, I have one instance >when I get clean boxes and another one where they have this problem.
This sounds like a bug, although if it works in one instance, but not the other, I wonder if the fields are defined differently. >Also, when I edit the form data with the 60;Edit Form61; link >available on the page, the entries on the above 3 fields show >up with the 56;\\57; added to them. >What is peculiar is that every time one edits and re-submits >the form, two new 56;\\57; get added. This causes serious troubles with the >page format. Does this happen with the field that displays correctly, or just the one where it displays incorrectly? The newline markup gets inserted and removed automatically. (Today, I'd probably do this using (:linebreaks:) and (:nolinebreaks:) directives.) It's really hard to work out what might be going wrong here. Can you send me a link to the site so I can see it? If not, can you set up a new pmwiki instance where I can see it, with just the wikiforms recipe installed and the standard pmwiki template, so we can replicate the problem with no extra complicating factors? The fact that it works in one instance and not the other makes me wonder if there is an error in the FormTemplate. Otherwise, I need to see the html of the 2 instances, one valid and one invalid, plus the corresponding field definitions from the FormTemplate. If you have 'value=' in a form field, that means it's generating invalid html and is missing an apostrophe, but I can't see where this might be unless I know what field type it is generating. I checked the wikiform.php source again and it looks correct. > >I will appreciate any comments. Thank you. > > >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Sameer Kumar >Sent: Monday, July 30, 2007 7:55 PM >To: John Rankin >Cc: [email protected] >Subject: Re: [pmwiki-users] Wikiforms and >templates(SameerKumar):pmwiki-users Digest, Vol 25, Issue 59 > > >SEE BELOW FOR MY RESPONSE: > ><snip> >[SK] >[SK] That worked quite well. In fact, I coded the 'edit' tab on >the FormData page to automatically open the FlexiData in edit >form and the 'view' tab in Flexidata to automatically switch >back to the FormData view page. This makes the system extremely seamless. >The problem now is that I have been unable to switch off the >Formtitle recipe! I cannot get the form to create the numbered >pages anymore. So, with the Formtitle working, I have the following problems: The forms recipe always creates numbered pages. What you are seeing arises because you have defined one field as type 'title', so the value of this field is being used to assign a title to the page. If you look in the browser address bar you will see that the name is a 5 digit number. The formtitle recipe adds an extra capability of letting you link to a page by its title rather than its name. I don't think you need it in this case. >1. When I am in Projects.Museum page and hit60;Edit61; >tab, it takes me to the Projectstext.00001?action=edit page. >When I hit 60;Save61; button after editing, it brings me to >Projectstext.00001 page. I can have a link back to the >Projects.Museum page from there but the better option would be >if I could customize the60;Save61; button. Can I do that?? Is it really Projects.Museum or Projects.00001 with (:title Museum:)? But yes, I think so. I think in your local/Projectstext.php file you can write: $EditRedirectFmt = 'Projects.$Name'; This should tell pmwiki to redirect to the corresponding page in the Projects group after saving a page in the Projectstext group.. > >2. The problem with the 56;discussion57; tab still exists. >Currently the Comments.PageActions page has the following link for the >60;View61; tab: > >%item rel=nofollow class=back [EMAIL PROTECTED]@[EMAIL >PROTECTED]@}?action=view | $[View] ]] > >Can I change this to read the 56;title57; of the page just like >(:if exists FormData.{$Name} :)(:fpara xxxx=FormData.{$Name} >:)(:ifend:) > >Thank you! > I need a bit more information, as I am not familiar with this recipe. You need to lead me by the hand and spell out all the page names (not the page titles -- the names in the browser address bar). You also need to tell me what you see and what you want to see. Otherwise, I am in the dark as to what you want to achieve, I'm afraid. > > -- JR -- John Rankin _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
