diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-12 17:51:32 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-12 17:51:32 +0000 |
commit | d39717a1cb395a45bb794c8141f1ef29f9a00705 (patch) | |
tree | 5901b846401c54dd51e1347a308148c4e5e01e23 /doc/plugins/write.mdwn | |
parent | 0fd3ec8068d866b1cb87abca5d4534da7818d413 (diff) |
* If the meta plugin overides the page title, set a title_overridden
variable in the template to true. This allows doing things with the
templates conditional on the title being overriden.
Diffstat (limited to 'doc/plugins/write.mdwn')
-rw-r--r-- | doc/plugins/write.mdwn | 8 |
1 files changed, 1 insertions, 7 deletions
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 |