Closed
Bug 274220
Opened 20 years ago
Closed 20 years ago
Provide additional documentation about creating custom templates
Categories
(Bugzilla :: Documentation, defect)
Bugzilla
Documentation
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: agrieco, Assigned: shane.h.w.travis)
Details
Attachments
(2 files, 2 obsolete files)
|
821 bytes,
patch
|
goobix
:
review+
|
Details | Diff | Splinter Review |
|
614 bytes,
patch
|
goobix
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 I am having a problem with my first attempt to customize templates in 2.18rc3. The custom-guided example seems to work, but clearly I am missing something in the process of doing my own. I started with the en/custom/bugs/create/create.html.tmpl and comment.txt.tmpl files and copyed them to create-cust.html.tmpl and comment-cust.html.tmpl (same path). From there, I made the following changes: /srv/www/htdocs/bugz/template/en/custom/bug/create # diff comment.txt.tmpl comment-cust.txt.tmpl 26a27 > Buildtest [% form.buildtest %] /srv/www/htdocs/bugz/template/en/custom/bug/create # diff create.html.tmpl create-cust.html.tmpl 139c139,144 < --- > <tr> > <td></td> > <td colspan="3"> > BuildTest <input type="text" name="buildtest" size="30"> > </td> > </tr> I see the fields in the HTML on enter_bug.cgi, but the data in the field named buildtest is never displayed again. I am using the convetion of enter_bug.cgi?format=cust&ctype=html Reproducible: Always Steps to Reproduce: 1. Edit the templates as described above in details 2. run check perl script..everything passes 3. Enter a new bug, with the new form fields and submit Actual Results: Only the data from the 'traditional' fields is seen in the bug after submission
Comment 1•20 years ago
|
||
I can reproduce this on landfill, with a template named comment-cust.txt.tmpl. However, comment-guided.txt.tmpl seems to work just fine. What's in a name???
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•20 years ago
|
||
Doh, here's the difference.... create-guided.html.tmpl has this in it: <input type="hidden" name="format" value="guided"> Since I copied create.html.tmpl as the starting point, and it uses the default format, it doesn't have a format field in the form. Adding <input type="hidden" name="format" value="cust"> to create-cust.html.tmpl makes it work. The documentation in section 5.1.4 seems to be missing this important little tidbit...
Assignee: myk → documentation
Component: Creating/Changing Bugs → Documentation
Flags: blocking2.20+
Flags: blocking2.18+
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 2.18
Viola! That did it. You guys rock. thanks for the quick response and timely workaround. I see you have changed this to a docs bug. Sounds great. Probably impacts most previous releases (although I have not looked at their docs). Thanks Anthony
Comment 4•20 years ago
|
||
Assignee: documentation → vladd
Status: NEW → ASSIGNED
Comment 5•20 years ago
|
||
Comment on attachment 168525 [details] [diff] [review] v1 Jake, this is a 2.18 release blocker, can you take a look at it? Thanks!
Attachment #168525 -
Flags: review?(jake)
Updated•20 years ago
|
Whiteboard: patch awaiting review
Updated•20 years ago
|
Attachment #168525 -
Flags: review?(travis)
Comment 6•20 years ago
|
||
Comment on attachment 168525 [details] [diff] [review] v1 >+ <code><input type="hidden" name="format" value="cust"></code> Need to html_quote() this <input> tag. Also, <code/> is not a DocBook tag.
Attachment #168525 -
Flags: review?(jake) → review-
Comment 7•20 years ago
|
||
Travis: if you have time for this 2.18 blocker, feel free to dig in :-)
Whiteboard: patch awaiting review → bug awaiting patch
Updated•20 years ago
|
Attachment #168525 -
Flags: review?(travis)
| Assignee | ||
Comment 8•20 years ago
|
||
Ask, and ye shall receive. Here is a cleaned-up patch for the tip. Does not apply against 2.18, for reasons I shall explain in the next attachment.
Attachment #168525 -
Attachment is obsolete: true
Attachment #169738 -
Flags: review?(documentation)
| Assignee | ||
Comment 9•20 years ago
|
||
I was surprised when my tip patch did not apply cleanly against 2.18. I was more surprised to find the reason: that being that a cleaned-up version of Vlad's original patch had *already* been applied to the docs! Checking http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/webtools/bugzilla/docs/xml/customization.xml&rev=1.12.2.5 to see whose fault it was, I see that Jake checked it in... but that the patch notes are for bug 253720, which is not right at all! Jake, you wanna 'splain? So, I cleaned up the one diff between the two patches, and here's another patch for 2.18 to make it identical to the tip patch. The only difference is that mine uses <programlisting> whereas this bastard patch uses <computeroutput>. I made my choice based on what has been done elsewhere in customization.xml to show HTML code (and that 'programlisting' seems more correct in this context), but there really doesn't seem to be much difference between them. It may be worth making things consistent someday... but not as part of this bug.
| Assignee | ||
Updated•20 years ago
|
Attachment #169739 -
Flags: review?(documentation)
| Assignee | ||
Updated•20 years ago
|
Assignee: vladd → travis
Status: ASSIGNED → NEW
| Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Whiteboard: bug awaiting patch → patch awaiting review
| Assignee | ||
Comment 10•20 years ago
|
||
Helps when you don't do the patch backwards... Argh.
Attachment #169739 -
Attachment is obsolete: true
Attachment #169745 -
Flags: review?(documentation)
| Assignee | ||
Updated•20 years ago
|
Attachment #169739 -
Flags: review?(documentation)
Comment 11•20 years ago
|
||
Comment on attachment 169745 [details] [diff] [review] Doc changes for 2.18, take2 According to http://www.oreilly.com/catalog/docbook/chapter/book/programlisting.html and http://www.oreilly.com/catalog/docbook/chapter/book/computeroutput.html , the right thing to use here is <programlisting>, since we're writing that code inside a template; it's kind of a program that we're writing, not a thing generated by a computer.
Attachment #169745 -
Flags: review?(documentation) → review+
Updated•20 years ago
|
Attachment #169738 -
Flags: review?(documentation) → review+
Comment 12•20 years ago
|
||
Checking in docs/xml/customization.xml; /cvsroot/mozilla/webtools/bugzilla/docs/xml/customization.xml,v <-- customization.xml new revision: 1.18; previous revision: 1.17 done Checking in docs/xml/customization.xml; /cvsroot/mozilla/webtools/bugzilla/docs/xml/customization.xml,v <-- customization.xml new revision: 1.12.2.6; previous revision: 1.12.2.5 done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Summary: Custom Template's not entering new form fields in comments → Provide additional documentation about creating custom templates
Whiteboard: patch awaiting review
Comment 13•20 years ago
|
||
(In reply to comment #9) > Jake, you wanna 'splain? My explination follows: Oops. OK, seriously, most likely what happened is that I was reviewing the patch for this bug on 2.18 and when I checked in bug 253720 I failed to run my cvs -q update -dPC command to make sure I was running a clean version prior to applying the patch.
| Assignee | ||
Comment 14•20 years ago
|
||
> (In reply to comment #9)
> My explination follows:
>
> Oops.
Jake, you owe me a new keyboard; this one has coffee all over it. :)
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•