[pmwiki-users] More Wikiforms

Sameer Kumar skumar at eharch.com
Mon Jul 30 19:13:48 CDT 2007


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 "value=" filled in... How can
I avoid that? Interestingly, I have one instance when I get clean boxes
and another one where they have this problem.

Also, when I edit the form data with the "Edit Form" link available on
the page, the entries on the above 3 fields show up with the '\\' added
to them.

What is peculiar is that every time one edits and re-submits the form,
two new '\\' get added. This causes serious troubles with the page
format.

 

I will appreciate any comments. Thank you.

 

________________________________

From: pmwiki-users-bounces at pmichaud.com
[mailto:pmwiki-users-bounces at pmichaud.com] On Behalf Of Sameer Kumar
Sent: Monday, July 30, 2007 7:55 PM
To: John Rankin
Cc: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] Wikiforms and
templates(SameerKumar):pmwiki-users Digest, Vol 25, Issue 59

 




SEE BELOW FOR MY RESPONSE:

 

Let me start by using the base wikiforms approach, ie without

the title option. The title adds a lot of complexity and

perhaps could be considered for a subsequent refined version. 

Getting titles straight in this case makes my head hurt.

 

With numbered pages (formtitle disabled)...

===========================================

 

1. set up 2 groups: eg FormData and FlexiData

 

FormData is driven by FormData.FormTemplate and FlexiData

is plain old wiki pages.

 

2. Set up FormData.GroupFooter with

 

(:if exists FlexiData.{$Name} :)(:include FlexiData.{$Name}:)

(:else:)[[FlexiData.{$Name} |Create flexi-text]] (:ifend:)

 

This will append the unstructured data if the page exists,

otherwise it will give you a link to create it.

 

3. Set up FlexiData.GroupFooter with

 

(:if exists FormData.{$Name} :)[[FormData.{$Name} |Return to form-text]]

(:ifend:)

 

4. In this scenario, your discussion tab should work

 

All the names are as pmwiki intended, and everything should

just work, including backlinks.

[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:

1.      When I am in Projects.Museum page and hit "Edit" tab, it takes
me to the Projectstext.00001?action=edit page. When I hit "Save" 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 the "Save" button. Can I do that??

 

2.      The problem with the 'discussion' tab still exists. Currently
the Comments.PageActions page has the following link for the "View" tab:

 

%item rel=nofollow class=back
accesskey=$[ak_back]%[[@3@{$Name}@3@}?action=view | $[View] ]]

 

Can I change this to read the 'title' of the page just like 

(:if exists FormData.{$Name} :)(:fpara xxxx=FormData.{$Name} :)(:ifend:)

 

Thank you!

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070730/48fb016c/attachment.html 


More information about the pmwiki-users mailing list