diff options
Diffstat (limited to 'doc/plugins')
-rw-r--r-- | doc/plugins/meta.mdwn | 4 | ||||
-rw-r--r-- | doc/plugins/write.mdwn | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/doc/plugins/meta.mdwn b/doc/plugins/meta.mdwn index de04dcdd5..de16a9179 100644 --- a/doc/plugins/meta.mdwn +++ b/doc/plugins/meta.mdwn @@ -28,6 +28,10 @@ You can use any field names you like, but here are some predefined ones: Overrides the title of the page, which is generally the same as the page name. + Note that if the title is overrideen, a "title_overridden" variable will + be set to a true value in the template; this can be used to format things + differently in this case. + * license Specifies a copyright license for the page, for example, "GPL". diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 6d9054389..950c4f1f9 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -116,13 +116,7 @@ used to generate the page. The function can manipulate that template object. The most common thing to do is probably to call $template->param() to add -a new custom parameter to the template. Note that in order to be robust, -it's a good idea to check whether the template has a variable before trying -to set it, as setting a variable that's not present is an error. - - if ($template->query(name => 'foo')) { - $template->param("foo" => "bar"); - } +a new custom parameter to the template. ## sanitize |