[pmwiki-devel] Group.Name pattern
    Hans 
    design5 at softflow.co.uk
       
    Fri Dec  8 12:46:06 CST 2006
    
    
  
Friday, December 8, 2006, 6:13:09 PM, Patrick wrote:
> Thus:
>     # all pages in the Category group, wildcard
>     $list = MatchPageNames($list, 'Category.*')
MatchPageNames may indeed do the work, but how do I specify the
current group?
This does not work:
MatchPageNames($targetpage, '{$Group}.*')
Nor does
$group = PageVar($pagename, '$Group');
MatchPageNames($targetpage, '$group.*')
But this does:
$group = PageVar($pagename, '$Group');
MatchPageNames($targetpage, $group.'*')
This is a bit better than $group.'\.(.*)'
but still not as friendly (because we are used to it) as
'{$Group}.*' or perhaps '$group.*'
Hans
    
    
More information about the pmwiki-devel
mailing list