Specific format for a product

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Specific format for a product

Christian Herrmann

I want to customize the enter_bug.cgi so that for a particular product I
get a specific format for Bugzilla 2.18.1.

My first idea was to give the specific format in an URL to the users
like http://myserver/bugzilla/enter_bug.cgi?product=ABC&format=XYZ.
Works fine if the user is logged in already, but this is in most cases
not the case. Unfortunatly after logging in, the "format" information is
lost and the default format is used.

Actually any bug entry for this product should use this (much
simplified) format. Is it possible to specify a specific format to be
used for a particular product?

Thanks,
Chris
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Specific format for a product

Gervase Markham
Christian Herrmann wrote:
> My first idea was to give the specific format in an URL to the users
> like http://myserver/bugzilla/enter_bug.cgi?product=ABC&format=XYZ.
> Works fine if the user is logged in already, but this is in most cases
> not the case. Unfortunatly after logging in, the "format" information is
> lost and the default format is used.

That's a bug - please file it if it's not filed already :-)

> Actually any bug entry for this product should use this (much
> simplified) format. Is it possible to specify a specific format to be
> used for a particular product?

You could hack the code to do:

if ($product == "MyProduct) {
   $format = "myproductformat";
}

or similar. Other than that, no.

Gerv
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Specific format for a product

A. Karl Kornel
In reply to this post by Christian Herrmann
In article <d84hdo$sqf$[hidden email]>,
 Christian Herrmann <[hidden email]> wrote:

> I want to customize the enter_bug.cgi so that for a particular product I
> get a specific format for Bugzilla 2.18.1.
>
> My first idea was to give the specific format in an URL to the users
> like http://myserver/bugzilla/enter_bug.cgi?product=ABC&format=XYZ.
> Works fine if the user is logged in already, but this is in most cases
> not the case. Unfortunatly after logging in, the "format" information is
> lost and the default format is used.

   I'd say that you should send them to `query.cgi?GoAheadAndLogIn=1`,
tell them to search for the bug, and then direct them to the URL.

   The other thing I'd suggest is that you swap the XYZ format and the
default.  Rename 'comment.txt.tmpl' to 'comment-expert.txt.tmpl', and
rename 'comment.html.tmpl' to 'comment-expert.html.tmpl'.  So then the
default template becomes the "expert" format template.  Then rename
'comment-XYZ.txt.tmpl' to 'comment.txt.tmpl', and rename
'comment-XYZ.html.tmpl' to 'comment.html.tmpl'.  That makes your XYZ
format the default format, so the URL no longer needs "format=XYZ".

   Of course, that might not work for you.  Hopefully it'll help!
--
=============================
|   Alfred Karl Kornel
|   -- [hidden email]
|   Member- Europa Research Group
|   UNIX / RESOLVE Consultant
=============================

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Specific format for a product

Christian Herrmann
A. Karl Kornel wrote:
>    I'd say that you should send them to `query.cgi?GoAheadAndLogIn=1`,
> tell them to search for the bug, and then direct them to the URL.

What does the setting of GoAheadAndLogIn=1 do?
(I don't find it explained on the Bugzilla web pages.)


>    The other thing I'd suggest is that you swap the XYZ format and the
> default.  Rename 'comment.txt.tmpl' to 'comment-expert.txt.tmpl', and
> rename 'comment.html.tmpl' to 'comment-expert.html.tmpl'.  So then the
> default template becomes the "expert" format template.  Then rename
> 'comment-XYZ.txt.tmpl' to 'comment.txt.tmpl', and rename
> 'comment-XYZ.html.tmpl' to 'comment.html.tmpl'.  That makes your XYZ
> format the default format, so the URL no longer needs "format=XYZ".

Thsi won't work for us. For all other product the default input form is
just fine. Only for one product we need a simplified form that won't
scare of the users and ask them for unneeded information

>    Of course, that might not work for you.  Hopefully it'll help!

One step further. :-)

Thanks for replying!

Chris
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Specific format for a product

A. Karl Kornel
In article <d88srb$am4$[hidden email]>,
 Christian Herrmann <[hidden email]> wrote:

> A. Karl Kornel wrote:
> >    I'd say that you should send them to `query.cgi?GoAheadAndLogIn=1`,
> > tell them to search for the bug, and then direct them to the URL.
>
> What does the setting of GoAheadAndLogIn=1 do?

   Although it is possible to configure Bugzilla so that going to any
page requires a login, quiery.cgi and show_bug.cgi have special cases,
where if "GoAheadAndLogIn=1" is one of the arguments in the URL, it will
force a login (unless you're already logged in).

> (I don't find it explained on the Bugzilla web pages.)

   If you go to a Bugzilla site where you have not logged in, the "Log
In" link in the footer takes you to that page.

>
> Thsi won't work for us. For all other product the default input form is
> just fine. Only for one product we need a simplified form that won't
> scare of the users and ask them for unneeded information
>

   Unfortunately, I don't have anything else to suggest.  Until your
problem is fixed, you may have to make users go through the 2 steps
(login & then the enter_bug script).

   I should note that I have not been able to reproduce your problem.  I
tried it on my installation of 2.18.1, with two different formats (the
guided & the normal), and two different products.  You may want to do
some more checking on your end, and if you think it's a bug, report it.

   Good luck!
--
=============================
|   Alfred Karl Kornel
|   -- [hidden email]
|   Member- Europa Research Group
|   UNIX / RESOLVE Consultant
=============================

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools