[pmwiki-users] Navigation to "Sub-Groups"
Sivakatirswami
katir at hindu.org
Sun Jan 21 05:10:25 CST 2007
I'm struggling with the absence of a 3rd level in PMwiki's hierarchy.
Put another way: as has oft been asked "Can we have sub-groups" Ok the
answer is NO.. so I've set up model for project management where
sub-groups are based on file nomenclature, using the "stem" model which
is already used universally in so many contexts (URI for example) and
naive users easily "digest" and understand a structure like this, which
just looks visually like any domain-realm-site-pages model:
MailLists.MailLists
MailLists-Invitations.MailList-Invitations
MailLists-Maintenance.MailList-Maintenance
MailLists-FAQ.MailLists.FAQ
etc.
This is actually working out quite will as using wildcard for
"group=MailLists*" aggregates all
"subgroups" in page list conditionals.
but a problem arises if the user is located at a "sub-level"
e.g.
MailLists-Maintenance.DelegationOptions
I want to have a menu-form select drop down that will allow the user to
navigate "up and across" to other sub-groups.
This works, but only if I am in the "top Mother group" MailLists.MailLists
---------
Go To Related Projects: (:input form:)(:select+ project:)(:option :)Jump
To Page(:pagelist group={$Group}* name={$Group}*
fmt="#selectlistpages":)(:selectend:)(:input end:)
----------
I get a nice drop down menu to select and go to:
MailLists.MailLists
MailLists-Invitations.MailList-Invitations
MailLists-Maintenance.MailList-Maintenance
MailLists-FAQ.MailLists.FAQ
But this is dependent on my being on some page in the "Mother" group
"MailLists"
If I am on this "child" (sub-project-group) Home Page:
MailLists-Invitations.MailList-Invitations
I can't figure out how to declare a conditional that will deliver a
page list for all groups under
"MailList" Since the {$Group} is "MailLists-Invitations"
group={$Group}* will fail to
get me all the "subgroups" under "MailLists*"
In another programming language would just set a delimiter to "-", parse
the first item
which would then return "MailLists*" in all cases.
How do I do that in PMwiki?
stating yet again: if I am here:
MailLists-Invitations.InputCGI
how can I generate, from that page,
a pagelist of the "home pages" for related projects?
MailLists.MailLists
MailLists-Invitations.MailList-Invitations
MailLists-Maintenance.MailList-Maintenance
MailLists-FAQ.MailLists.FAQ
Our model is such that there is *always* a home page where Group=Name
which is the PMwiki default. So that's dependable.
I could use:
---------
Go To Related Projects: (:input form:)(:select+ project:)(:option :)Jump
To Page(:pagelist group={$Group}* name={$Group}-*
fmt="#selectlistpages":)(:selectend:)(:input end:)
----------
But this will fail to pick up pages in the top level
"MailLists.MailLists" which has no dash in the group name.
TIA
Sivakatirswami
www.himalayanacademy.com
More information about the pmwiki-users
mailing list