[pmwiki-users] Pagelists of multiple linkbacks
Hans
design5 at softflow.co.uk
Sun Aug 10 16:25:23 CDT 2008
Sunday, August 10, 2008, 10:15:12 PM, Hans wrote:
> Meanwhile you can try this solution based on markup expressions:
>...
small correction:
the unilist markup expression definition should be:
# return united pagelist formatted as simple list
# from csv-pagelists supplied as arguments
$MarkupExpr['unilist'] = 'MXUniList($pagename, $args)';
function MXUniList($pagename, $args) {
$a = array();
foreach($args as $v) {
$vv = explode(',',$v);
$a = array_merge($a, $vv);
}
$a = array_unique($a);
sort($a);
//make list of pagename links
foreach($a as $k => $p)
$a[$k] = '* [['.$p.']]';
return implode("\n",$a);
}
~Hans
More information about the pmwiki-users
mailing list