[pmwiki-users] wikiforms question

Curtis, Clayton Clayton.Curtis at va.gov
Wed Apr 26 07:19:43 CDT 2006


In response to question on tying upload code to wikiforms via
GroupFooter, John Rankin wrote:
>> Does the GroupFooter code show up on none of the pages in the 
>> group or is it only on pages that are form based? For example,
>> do you see the form link on the group's HomePage? I would 
>> expect to see at least this bit displayed:
>> [[{$FullName}?action=upload | Click here]] to upload file to
>>attach to this page.

Thanks for your diagnostic hints, which let me make progress.
I can tell you that one easy way not to have headers/footers show up is
to put wiki code there directly without going through the PmWiki page
editor!  :[   I should have known better, of course.  Live and learn.
Having rectified that, I now have the following code correctly installed
and working in Contributions.GroupFooter:  (took a while to figure out
what to try to match)

- - - - -
(:if match ^Contributions.[0-9]{5}$ :)
[[{$FullName}?action=upload | Click here]] to upload file to attach to
this page.
(:if:)
(:attachlist:)
- - - - -

Now, however, uploads don't seem to want to work on wikiform pages with
action=upload. No matter how I do it (triad skin menu action or as part
of typed-in URL) it results in a hard browser hang immediately after
entering the upload password.  Uploads work fine everywhere else on the
site and in the Contributions group on anything other than a form page
(i.e., anything other than Contributions.00001 for example).  I can even
add an attachment to the HomePage page holding the (:wikilist:)
directive or the New page holding the (:wikiform:) directive.

Because I want the attachments to be associated specifically with each
form, and not with the group, I have uploads configured "per Group / per
Page".
Is it possible that there is some interaction between the numeric naming
of generated pages and whatever commands are necessary to create /
manipulate the containing directories or the pages themselves or the
related upload magic?  I hand created a page Contributions.00002 (i.e.,
through the PmWiki editor rather than through the :wikiform: directive)
and it exhibits the same behavior. Didn't seem like the 00001 and 00002
directories could be created.  But Contributions/HomePage and
Contributions/New were created without problem when I tested that route,
and the attachment stored there.  When I hand-created
uploads/Contributions/00001 with 777 permissions, it didn't change the
behavior, so I'm not sure what's going on.

My sincere apologies for the long post.




More information about the pmwiki-users mailing list