[pmwiki-users] [WikiForms] automatically list all wikiforms in different groups with (:wikilist:)
john.rankin at affinity.co.nz
Wed Sep 6 21:21:14 CDT 2006
On Thursday, 7 September 2006 9:32 AM, Hsing-Foo Wang <hsingfoo at gmail.com> wrote:
>On 9/6/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>> Can it be done with (:pagelist:) somehow? Pagelist is able to
>> search through pages in a group (or sets of groups) and to find
>> pages containing certain text items, so it seems like we'd just
>> need a way to get that information to (:wikilist:).
>Interesting suggestion and I see some light ;-), let me chew on
>this for a bit.
There are a couple of things to bear in mind:
(:wikilist:) displays the name, not the full name, so if
you have one list that combines several groups, there will
be several lines referring to "00001".
Um, did you know you can write (:wikilist group=Group1:)
to generate a list of items from a different group? So
just set up a page with
and so on. This requires no new code.
If you want to merge them into a single multi-group list,
that will be more difficult. Because of the way it retrieves
and sorts pages, I suspect you may have to scrap the wikilist
code and start again. You'd have to wrap the whole thing
in a 'for each group' loop and add a groupname to the front
of every sort. Possible, but very messy.
You say "together on 1 page" so it depends whether you mean
together = in the same list or together = on the same page.
More information about the pmwiki-users