[pmwiki-users] Can't get (:pagelist:) to ignore group-named page . . .

Patrick R. Michaud pmichaud at pobox.com
Sun Jun 19 12:38:01 CDT 2005


On Sun, Jun 19, 2005 at 12:35:59PM -0500, Benjamin Wilson wrote:
> Link: http://www.gmtoolbox.org/Espace/index.php/Main/SiteMap
> Markup: (:pagelist list=sitemap:)
> Config: $SearchPatterns['sitemap'][] = '!^([^.])\\.$1$!';
> 
> 
> I am trying to prevent the pagelist from showing pages that have the 
> same name as the group (e.g. GroupName.GroupName). However, as you will 
> see by scanning the page linked to above, they are appearing. The value 
> for $SearchPatterns is one that I graciously stole from the list. It had 
> been posted earlier this week.

And it was wrong -- I forgot to send the correction to the list.
The correct pattern is

   $SearchPatterns['sitemap'][] = '!^([^.]+)\\.$1$!';

Pm



More information about the pmwiki-users mailing list