[Mediawiki-l] Listing Sub-Pages That Fall Under a Page

Christopher.Reigrut at Key.com Christopher.Reigrut at Key.com
Wed Jul 9 15:55:31 UTC 2008


That's easily accomplishable via Dynamic Page Lists and the titleregexp 
key.  Something like:
{{#dpl:
|namespace={{NAMESPACE}}
|titleregexp=^{{PAGENAME}}/[^/]*$
|includesubpages=true
|noresultsheader=No subpages
}}

Depending on how you want to return the information, you may need to use 
mode=userformat and maybe StringFunctions to parse out the bits you want.
Christopher M. Reigrut 
Applications Systems Architect 
Key Technology Services / KeyBank 
1000 South McCaslin Boulevard 
Superior, Colorado 80027 
720-304-1049 

> ----- Message from "Bobby S" <bobbys at gmail.com> on Tue, 8 Jul 2008 
> 
> Is there a way to list all of the sub-pages under a particular page?
> For example, let's say I have the following:
> 
> Page1/Sub_Page1/Sub_Page2/Sub_Page3
> Page1/Sub_Page1/Sub_Page4/Sub_Page5
> 
> If I were on Page1, I would want the query to bring back the 
articletitle for:
> 
> Sub_Page1
> 
> If I were on Sub_Page1, I would want the query to bring back the
> article titles for:
> 
> Sub_Page2 and Sub_Page4



*******************************************************************************
This communication may contain privileged and/or confidential information. It
is intended solely for the use of the addressee. If you are not the intended
recipient, you are strictly prohibited from disclosing, copying, distributing
or using any of this information. If you received this communication in error,
please contact the sender immediately and destroy the material in its entirety,
whether electronic or hard copy. This communication may contain nonpublic personal
information about consumers subject to the restrictions of the 
Gramm-Leach-Bliley Act. You may not directly or indirectly reuse or redisclose
such information for any purpose other than to provide the services for which
you are receiving the information.

127 Public Square, Cleveland, OH 44114
*******************************************************************************


If you prefer not to receive future e-mail offers for products or services from Key 
send an e-mail to mailto:DNERequests at key.com with 'No Promotional E-mails' in the 
SUBJECT line.


More information about the MediaWiki-l mailing list