[pmwiki-users] Modifying Wikiforms
John Rankin
john.rankin at affinity.co.nz
Wed Feb 1 15:39:52 CST 2006
On Wednesday, 1 February 2006 3:16 PM, John Rankin <john.rankin at affinity.co.nz> wrote:
>Tegan Dowling wrote:
>I'm just trying to use the Wikilist part of the WikiForms recipe to present
>records in tabular form, with those nifty headings that you can click and
>re-click to sort-ascending and re-sort-descending.
>
>Can anyone suggest a hack to the recipe that will suppress display of the
>first column?
For consistency the page name should work the same way as other columns,
so it should allow you to omit the page column by writing
(:wikilist !page:)
No worries -- download the latest version of wikiform.php from
http://www.pmwiki.org/wiki/Cookbook/WikiForms
But I understand there is a wider requirement, eg Tegan's note that...
The individual pages for the contacts would not be the numbered pages that
feed the (:wikilist:), because I want the page names to be the names of the
individuals, and I want to be able to format the contact pages and add
pictures, etc.
There are at least 2 options for doing this:
1. Retain the page numbering scheme, but use a (:title Textual Name:)
directive on each page.
The new [[name |+]] markup could then be used to show the title in
the (:wikilist:). This would be relatively easy to implement, it
works "the pmwiki way", but requires an author to specify a title.
It is probably more robust than using the person's name as a page
name -- what if the name changes?
2. Modify wikiforms to work off regular page names as well as the
all numeric pattern.
I haven't seen a good way to implement this as yet. In particular,
I haven't come up with a robust way to distinguish between pages
that are form-based and pages that aren't. Both the form handler
and list handler will run into trouble if they try to process
pages that don't follow the template.
So I tend to favour option 1. It would need to support sorts by
title instead of name, but that is straightforward.
Comments?
>
>John
--
JR
--
John Rankin
More information about the pmwiki-users
mailing list