[pmwiki-users] conditional markup matching search pattern

Dominique Faure dominique.faure at gmail.com
Mon May 26 08:58:37 CDT 2008


On Mon, May 26, 2008 at 3:40 PM, noskule <noskule at gmx.net> wrote:
>
> hi list
> In my wiki I have groups that are uses for configuration, storing forms
> etc. So I would like to display certain page action only if the current
> group isn't one of those.
>
> Is there a way to do a condition that matches searchpattern? Something like
>
> if {*$FullName} ! searchpattern default do something
>
> thanks for any hints
> nos
>
>
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users

The http://www.pmwiki.org/wiki/Cookbook/ConditionalExtensions recipe
provides pattern matching:

(:if regmatch REG_EXPRESSION VALUE:)
True if the value matches the regular expression.

(:if matchname NAME_SPEC PAGENAME:)
(:if matchgroup GROUP_SPEC GROUPNAME:)
True if the given pagename/groupname match the wildcard placeholder
specification.

--
Dominique



More information about the pmwiki-users mailing list