[pmwiki-users] discussion pages?

Neil Herber nospam at eton.ca
Tue Jun 21 11:44:56 CDT 2005


At 2005-06-21  11:34 AM -0500, Patrick R. Michaud is rumored to have said:
>On Tue, Jun 21, 2005 at 11:30:32AM -0400, Neil Herber wrote:
> > At 2005-06-20  03:50 PM -0500, Jon Haupt is rumored to have said:
> > >You could even create a button that automatically creates a link to a
> > >talk/comments page by using something like this and put it in a menu:
> > >
> > >[[{$Name}-comments | Comments]]
> >
> > What I would like to do is put this markup into the page footer or header.
> > But that then leads to the comments pages having comments links like
> > Page-comments-comments.
> >
> > Is there any PmWiki markup that can do string manipulation on page names?
>
>Actually, my plan for "comments" has been that the comments markup
>would automatically avoid adding "-comments" to any page that already
>has that in the name.  Similar for "-draft" and the like.
>
>Pm

I have been trying to get this to work:

         (:if name .+?comments$ :) name ends with comments
         (:if:) carry on

On the http://www.pmwiki.org/wiki/PmWiki/ConditionalMarkup page, it seems 
to show REGEX -style markup. Am I dreaming? Or is it a subset of REGEX that 
works? If so, how do I do and "ends with" or "contains" comparison?



Neil

Neil Herber
Corporate info at http://www.eton.ca/
Eton Systems, 15 Pinepoint Drive, Nepean, ON, Canada K2H 6B1
Tel: (613) 829-4668 




More information about the pmwiki-users mailing list