Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
6241f764
Commit
6241f764
authored
Mar 22, 2004
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 233246 - improve documentation on enter_bug comment formatting templates.
parent
5ed084cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
23 deletions
+32
-23
customization.xml
docs/xml/customization.xml
+32
-23
No files found.
docs/xml/customization.xml
View file @
6241f764
...
@@ -240,46 +240,55 @@
...
@@ -240,46 +240,55 @@
<para>
<para>
<command>
bug/create/create.html.tmpl
</command>
and
<command>
bug/create/create.html.tmpl
</command>
and
<command>
bug/create/comment.txt.tmpl
</command>
:
<command>
bug/create/comment.txt.tmpl
</command>
:
You may wish to get bug submitters to give certain bits of structured
You may not wish to go to the effort of creating custom fields in
information, each in a separate input widget, for which there is not a
Bugzilla, yet you want to make sure that each bug report contains
field in the database. The bug entry system has been designed in an
a number of pieces of important information for which there is not
extensible fashion to enable you to define arbitrary fields and widgets,
a special field. The bug entry system has been designed in an
and have their values appear formatted in the initial
extensible fashion to enable you to add arbitrary HTML widgets,
Description, rather than in database fields. An example of this
such as drop-down lists or textboxes, to the bug entry page
is the mozilla.org
and have their values appear formatted in the initial comment.
<ulink
url=
"http://bugzilla.mozilla.org/enter_bug.cgi?format=guided"
>
guided
bug submission form
</ulink>
.
</para>
</para>
<para>
An example of this is the mozilla.org
<ulink
url=
"http://landfill.bugzilla.org/bugzilla-tip/enter_bug.cgi?product=WorldControl&format=guided"
>
guided
bug submission form
</ulink>
. The code for this comes with the Bugzilla
distribution as an example for you to copy. It can be found in the
files
<filename>
create-guided.html.tmpl
</filename>
and
<filename>
comment-guided.html.tmpl
</filename>
.
</para>
<para>
<para>
To make this work, create a custom template for
So to use this feature, create a custom template for
<filename>
enter_bug.cgi
</filename>
(the default template, on which you
<filename>
enter_bug.cgi
</filename>
. The default template, on which you
could base it, is
<filename>
create.html.tmpl
</filename>
),
could base it, is
and either call it
<filename>
create.html.tmpl
</filename>
or use a format and
<filename>
custom/bug/create/create.html.tmpl
</filename>
.
call it
<filename>
create-
<
formatname
>
.html.tmpl
</filename>
.
Call it
<filename>
create-
<
formatname
>
.html.tmpl
</filename>
, and
Put it in the
<filename
class=
"directory"
>
custom/bug/create
</filename>
in it, add widgets for each piece of information you'd like
directory. In it, add widgets for each piece of information you'd like
collected - such as a build number, or set of steps to reproduce.
collected - such as a build number, or set of steps to reproduce.
</para>
</para>
<para>
<para>
Then, create a template like
Then, create a template like
<filename>
custom/bug/create/comment.txt.tmpl
</filename>
, also named
<filename>
custom/bug/create/comment.txt.tmpl
</filename>
, and call it
after your format if you are using one, which
<filename>
comment-
<
formatname
>
.txt.tmpl
</filename>
. This
references the form fields you have created. When a bug report is
template should reference the form fields you have created using
the syntax
<filename>
[% form.
<
fieldname
>
%]
</filename>
. When a
bug report is
submitted, the initial comment attached to the bug report will be
submitted, the initial comment attached to the bug report will be
formatted according to the layout of this template.
formatted according to the layout of this template.
</para>
</para>
<para>
<para>
For example, if your enter_bug template had a field
For example, if your
custom
enter_bug template had a field
<programlisting>
<
input type="text" name="buildid" size="30"
>
</programlisting>
<programlisting>
<
input type="text" name="buildid" size="30"
>
</programlisting>
and then your comment.txt.tmpl had
and then your comment.txt.tmpl had
<programlisting>
BuildID: [% form.buildid %]
</programlisting>
<programlisting>
BuildID: [% form.buildid %]
</programlisting>
then
then
something like
<programlisting>
BuildID: 20020303
</programlisting>
<programlisting>
BuildID: 20020303
</programlisting>
would appear in the initial c
heckin c
omment.
would appear in the initial comment.
</para>
</para>
</section>
</section>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment