[pmwiki-users] extract basename

Petko Yotov 5ko at free.fr
Sat Apr 12 13:26:39 CDT 2008

noskule wrote:
> I try to build a pagevariable that get's me the basename of a related page:
> related page: Group.Name-Issue-#
> base page: Group.Name
> this code works if I put it in the related page but NOT if i put it in a 
> pagelisttemplate. If I put it in a pagelist template

You can just use $BaseNamePatterns:

   $BaseNamePatterns['/-Issue-.*?$/'] = '';

And in a pagelist:



More information about the pmwiki-users mailing list