From 360c780767308810e4f26010cb9feb84bde68fd2 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 6 Aug 2009 15:14:47 +0000 Subject: Bug 508199: A hook for page.cgi Patch by Max Kanat-Alexander r=dkl, a=mkanat --- Bugzilla/Hook.pm | 27 ++++++++++++++++++ extensions/example/code/page-before_template.pl | 33 ++++++++++++++++++++++ .../template/en/default/pages/example.html.tmpl | 32 +++++++++++++++++++++ page.cgi | 7 ++++- 4 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 extensions/example/code/page-before_template.pl create mode 100644 extensions/example/template/en/default/pages/example.html.tmpl diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index a8f61a415..1d506424f 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -478,6 +478,33 @@ Params: =back +=head2 page-before_template + +This is a simple way to add your own pages to Bugzilla. This hooks C, +which loads templates from F