01211: Support Group/ in pagelist name parameter

Summary: Support Group/ in pagelist name parameter
Created: 2010-06-28 22:11
Status: Closed
Category: Feature
From: simon
Assigned:
Priority: 3
Version: 2.2
OS: all

Description: Support the following use case in pagelists. Note that this is an extension of this syntax already in use in other contexts in PmWiki

(:pagelist name=PmWiki/,PITS/,Cookbook/ :)

No results found.

You can already use either name=PmWiki.*,PITS.* or group=PmWiki,PITS to achieve what you want. --Petko June 29, 2010, at 03:01 AM

(:pagelist name=PmWiki.*,PITS.*,Cookbook.* count=5:)
Cookbook /
AbbreviationPlurals  Automatically format text like CCDs as a plural abbreviation, instead of as a wikiword.
AbbreviationPlurals-Talk  Talk page for Abbreviation Plurals.
ABCHoverIndex  displays a pagelist as an alphabetic hover menu, sorted by title (stable)
ABCHoverIndex-Talk  Talk page for ABCHoverIndex.
ABCHoverIndex-Users  User notes for the ABCHoverIndex recipe.

Go to page:  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43 

Only search in group:  Cookbook (2353), PITS (1565), PmWiki (314)

(:pagelist group=PmWiki,PITS,Cookbook count=5:)
Cookbook /
AbbreviationPlurals  Automatically format text like CCDs as a plural abbreviation, instead of as a wikiword.
AbbreviationPlurals-Talk  Talk page for Abbreviation Plurals.
ABCHoverIndex  displays a pagelist as an alphabetic hover menu, sorted by title (stable)
ABCHoverIndex-Talk  Talk page for ABCHoverIndex.
ABCHoverIndex-Users  User notes for the ABCHoverIndex recipe.

Go to page:  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43 

Only search in group:  Cookbook (2353), PITS (1565), PmWiki (314)

The output I expect is

See [[PmWiki/BasicVariables#DefaultPage]]
(:pagelist name=PmWiki/{$DefaultPage},PITS/{$DefaultPage},Cookbook/{$DefaultPage} :)

No results found.

cf

[[PmWiki/]] 
[[PITS/]]
[[Cookbook/]]

PmWiki PITS Cookbook

Use DefaultName instead of DefaultPage:

See [[PmWiki/BasicVariables#DefaultPage]]
(:pagelist name=PmWiki/{$DefaultName},PITS/{$DefaultName},Cookbook/{$DefaultName} :)

{$DefaultName} is not always the group home page, often it is Group.Group. What is desired here could be done with a special template, as below. Also, some day we should have a better optimized (faster) pagelist with the parameter list=grouphomes. --Petko June 30, 2010, at 06:11 PM

[[#grouphomes]]
(:template first {=$Group}:)
[[{=$Group}/]]
[[#grouphomesend]]
(:pagelist group=PmWiki,PmWikiBg,Main,PITS,Cookbook fmt=#grouphomes:)
Array
(
    [post_max_size] => 64M
    [$_POST keys] => 
    [$_REQUEST keys] => n, q
    [$_SERVER] => Array
        (
            [CONTEXT_DOCUMENT_ROOT] => /home/pmwiki/public_html
            [CONTEXT_PREFIX] => 
            [DOCUMENT_ROOT] => /home/pmwiki/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTPS] => on
            [HTTP_ACCEPT] => */*
            [HTTP_ACCEPT_ENCODING] => gzip, br, zstd, deflate
            [HTTP_HOST] => www.pmwiki.org
            [HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
            [HTTP_X_HTTPS] => 1
            [PATH] => /bin:/usr/bin
            [PHP_INI_SCAN_DIR] => /opt/cpanel/ea-php70/root/etc:/opt/cpanel/ea-php70/root/etc/php.d:.
            [QUERY_STRING] => n=PITS%2f01211&q=+count%3D3101..3200
            [REDIRECT_HTTPS] => on
            [REDIRECT_QUERY_STRING] => n=PITS%2f01211&q=+count%3D3101..3200
            [REDIRECT_SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/01211
            [REDIRECT_SCRIPT_URL] => /wiki/PITS/01211
            [REDIRECT_SSL_TLS_SNI] => www.pmwiki.org
            [REDIRECT_STATUS] => 200
            [REDIRECT_UNIQUE_ID] => afIXDrNo1IO6je5HHwacUgAAAIA
            [REDIRECT_URL] => /wiki/PITS/01211
            [REMOTE_ADDR] => 216.73.216.31
            [REMOTE_PORT] => 17219
            [REQUEST_METHOD] => GET
            [REQUEST_SCHEME] => https
            [REQUEST_URI] => /wiki/PITS/01211?q=+count%3D3101..3200
            [SCRIPT_FILENAME] => /home/pmwiki/public_html/index.php
            [SCRIPT_NAME] => /index.php
            [SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/01211
            [SCRIPT_URL] => /wiki/PITS/01211
            [SERVER_ADDR] => 23.254.203.248
            [SERVER_ADMIN] => webmaster@pmwiki.org
            [SERVER_NAME] => www.pmwiki.org
            [SERVER_PORT] => 443
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [SSL_TLS_SNI] => www.pmwiki.org
            [TZ] => America/Los_Angeles
            [UNIQUE_ID] => afIXDrNo1IO6je5HHwacUgAAAIA
            [PHP_SELF] => /index.php
            [REQUEST_TIME_FLOAT] => 1777473294.6794
            [REQUEST_TIME] => 1777473294
            [argv] => Array
                (
                    [0] => n=PITS%2f01211&q=
                    [1] => count%3D3101..3200
                )

            [argc] => 2
        )

)