Recent Changes - Search:

PITS main list

edit sidebar

Main sidebar

PmWiki

pmwiki.org

01184

Summary: Allow conditional "exists" to use wildcards
Created: 2010-04-16 20:55
Status: Closed - added for 2.2.16
Category: CoreCandidate
Assigned:
Priority: 22
Version: 2.2
OS: n/a

Description: This code:

$Conditions['exists'] = "(boolean)ListPages(FixGlob(\$condparm, '$1*.$2'))";

appears to maintain current "exists" functionality while also allowing wildcards in the argument.

There would be a slight performance penalty since it would no longer make use of the $PageExistsCache. In 99% of cases this would be negligible, but it could have an impact on a page with a large number of these conditionals (such as in a pagelist).

-Peter

Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 11:56 AM