Howto use different help.html for Publisher and Reporter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Howto use different help.html for Publisher and Reporter

Ulli Hafner-2
Hi,

Currently my plugin-in Publisher and Reporter share the same help.html file for the config screen. Is there a way to provide a different html file for the reporter (src/main/webapp/help.html)?

Ulli
--
Avaloq - essential for banking.

Avaloq Evolution AG
Allmendstrasse 140, 8027 Z├╝rich
T +41 44 488 6790, F +41 44 488 6868, http://www.avaloq.com
Dr. Ullrich Hafner mailto:[hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Howto use different help.html for Publisher and Reporter

Kohsuke Kawaguchi
Administrator
Hafner Ullrich wrote:
> Hi,
>
> Currently my plugin-in Publisher and Reporter share the same help.html
> file for the config screen. Is there a way to provide a different html
> file for the reporter (src/main/webapp/help.html)?

Yes. When the config.jelly is rendered, "it" points to the job object
being configured. So from that type you can set different value to the
help attribute.

help="${h.ifThenElse(it.class.name=='...','help1.html','help2.html')}"/>

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

smime.p7s (4K) Download Attachment