PagelistNotes-Talk

Summary: Talk page for PagelistNotes.
Maintainer:
Users: (View / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

Comments

A through AZ B through BZ C through CZ titles listing

I will have a large wiki with lots of play titles. I would like to be able to have separate pagelists containing section A titles, section B titles, section C titles, etc. instead of one large alphabetical listing of titles. Is this possible with pagelist? PL 20060218

You can use wildcards for this:
      !!!A section: 
      (:pagelist group=Plays list=normal name=A* :)
      !!!B section:
      (:pagelist group=Plays list=normal name=B* :)
      !!!C section:
      (:pagelist group=Plays list=normal name=C* :)
      etc.
      !!!X Y Z section
      (:pagelist group=Plays list=normal name=X*,Y*,Z* :) 

~HansB

Searching for page names only (not content)

In a large wiki, pages are often named systematically, so I sometimes need to get a list of pages with specific name parts (the Linux ls *name* thing). I couldn't find a way to configure it (list=xxx allows so but only for predefined patterns), so I added the following code to pagelist.php (beta36) near line 111 next to the 'group' option:

  if ($opt['named']) array_unshift($pats,"/({$opt['named']})/i");

Then with

  (:pagelist named=ReleaseNotes list=normal:)

I get (very quick) a list of all pages containing "ReleaseNotes" in their name. Wouldn't that be worth adding to the mainline code? tpahl


Listing all groups except one

(:pagelist group= -PmWiki:) will list from all groups execpt PmWiki. See Directives#pagelist

Question

(:pagelist group=Recipes list=normal apple pie:) lists all pages with apple AND pie in them, how do I get a list of all pages with apple OR pie?

Answer

I would suggest use two pagelist directives:
(:pagelist group=Recipes list=normal apple :)
(:pagelist group=Recipes list=normal pie:)
DirkBlaas
This unfortunately list all pages that have both apple and pie on them twice.

(:pagelist group=Recipes list=normal -apple -pie:) lists all pages without apple OR pie, how do I get a list of all pages without apple AND pie in them?


How to exclude more than one group

This is possible from pmwiki 2.1.beta21 onwards using this syntax:

   (:pagelist group=-xxx,-yyy,-zzz :)

(HansB gave me this hint - Thanks!) Note : attention as mentioned in others pages the separator is NOT the comma but the space between two groups name

Does this apply to the name parameter too, eg

 (:pagelist group=TrampingReports order=-name list=normal name=-2005*,-HomePage,-Template:)

What about a way to list the "spaced" versions of the titles?

  (:pagelist group=Main.* fmt=titlespaced :)

-Jonathan Cross (jcross--gmail)

This can easily be done with pagelisttemplates. Just us {=$Titlespaced} inside your titlespaced format. See PagelistTemplateSamples. Martin Fick October 15, 2006, at 12:38 PM

Talk page for the PagelistNotes recipe (users).

Array
(
    [post_max_size] => 64M
    [$_POST keys] => 
    [$_REQUEST keys] => n
    [$_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_COOKIE] => imstime=1777494962; PHPSESSID=ervu27m3sod3abd48829kebie1
            [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=Cookbook%2fPagelistNotes%2dTalk
            [REDIRECT_HTTPS] => on
            [REDIRECT_QUERY_STRING] => n=Cookbook%2fPagelistNotes%2dTalk
            [REDIRECT_SCRIPT_URI] => https://www.pmwiki.org/wiki/Cookbook/PagelistNotes-Talk
            [REDIRECT_SCRIPT_URL] => /wiki/Cookbook/PagelistNotes-Talk
            [REDIRECT_SSL_TLS_SNI] => www.pmwiki.org
            [REDIRECT_STATUS] => 200
            [REDIRECT_UNIQUE_ID] => afJrxpv2ks1w_n45Fh_NRAAAAJU
            [REDIRECT_URL] => /wiki/Cookbook/PagelistNotes-Talk
            [REMOTE_ADDR] => 216.73.216.31
            [REMOTE_PORT] => 33678
            [REQUEST_METHOD] => GET
            [REQUEST_SCHEME] => https
            [REQUEST_URI] => /wiki/Cookbook/PagelistNotes-Talk
            [SCRIPT_FILENAME] => /home/pmwiki/public_html/index.php
            [SCRIPT_NAME] => /index.php
            [SCRIPT_URI] => https://www.pmwiki.org/wiki/Cookbook/PagelistNotes-Talk
            [SCRIPT_URL] => /wiki/Cookbook/PagelistNotes-Talk
            [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] => afJrxpv2ks1w_n45Fh_NRAAAAJU
            [PHP_SELF] => /index.php
            [REQUEST_TIME_FLOAT] => 1777494982.5119
            [REQUEST_TIME] => 1777494982
            [argv] => Array
                (
                    [0] => n=Cookbook%2fPagelistNotes%2dTalk
                )

            [argc] => 1
        )

)