|
Cookbook /
PagelistNotesSummary: Notes on page lists
Version:
Prerequisites:
Status:
Maintainer:
See also:Notes on page lists:predefined fmt paramenters:Other custom formats can be defined in config.php or a cookbook script. Custom formats added by cookbook scripts:
Cookbook recipes can add more output formatting options via the $FPLFunctions array as a custom function. Several that are planned are also "fmt=category" to display pages in a form suitable for category listings, and "fmt=menu" to display the list as an expandable or dropdown menu. link= parameter examples(see also Backlinks, FastBacklinks?) could there be a (:pagelist link=Groupname:), somehow?
(:pagelist link=Main*:)
ExamplesExample 1: Display all pages of the current group, except this page, by time of modification, most recent first: (:pagelist group={$Group} order=-time list=normal -{$FullName}:)
Example 2: Displays a list of all pages with links to Pm's profiles page (i.e., pages containing Pm. What's more, the pages are listed in reverse order by modification time (most recently changed pages first): (:pagelist link=Profiles.Pm order=-time fmt=simple:)
Note that the link= and order= options are "expensive" in that they require a fair amount of page scanning in order to obtain their results. On the other hand, link= and order= are less expensive than doing full text searches, and in future versions of PmWiki they may end up being optimized even further.
Comments/QuestionsA through AZ B through BZ C through CZ titles listingI 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:
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 if ($opt['named']) array_unshift($pats,"/({$opt['named']})/i");
Then with I get (very quick) a list of all pages containing Listing all groups except oneQuestion
AnswerI would suggest use two pagelist directives:
How to exclude more than one groupThis is possible from pmwiki 2.1.beta21 onwards using this syntax: (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 See AlsoContributors
What about a way to list the "spaced" versions of the titles? -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
|