diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-05-09 00:31:49 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-05-09 00:31:49 +0000 |
commit | 127bceef5b4799e58cb068043e49ed16a3ec840d (patch) | |
tree | 0f1f82d37fb8fca14410578ed00892534ad2584c /doc/plugins | |
parent | e1c54fef3da56ad9bb94fc7e187a56106a59f8cb (diff) | |
download | ikiwiki-127bceef5b4799e58cb068043e49ed16a3ec840d.tar ikiwiki-127bceef5b4799e58cb068043e49ed16a3ec840d.tar.gz |
* Add all=no option to conditional, can be used to form conditionals that do
not need to examine every page in the wiki.
* Use this to simplify the goodstuff detection in the plugin template.
Diffstat (limited to 'doc/plugins')
-rw-r--r-- | doc/plugins/conditional.mdwn | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/plugins/conditional.mdwn b/doc/plugins/conditional.mdwn index a8dd21589..ba1cf9bb2 100644 --- a/doc/plugins/conditional.mdwn +++ b/doc/plugins/conditional.mdwn @@ -18,8 +18,14 @@ quotes to be included. The `test` is a [[PageSpec]]; if it matches any page in the wiki then it succeeds. So you can do things like testing for the existence of a page or pages, testing to see if any pages were created in a given month, and so -on. The regular [[PageSpec]] syntax is expanded with the following -additional tests: +on. + +If you want the [[PageSpec]] to only match against the page that +contains the conditional, rather than matching against all pages in the +wiki, set the "all" parameter to "no". + +The regular [[PageSpec]] syntax is expanded with the following additional +tests: * enabled(plugin) |