PITS /
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:) |
|
(:pagelist group=PmWiki,PITS,Cookbook count=5:) |
|
The output I expect is
(:pagelist name=PmWiki/{$DefaultPage},PITS/{$DefaultPage},Cookbook/{$DefaultPage} :) |
No results found. |
cf
[[PmWiki/]] [[PITS/]] [[Cookbook/]] |
Use DefaultName instead of 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:) |