On Tue, Feb 14, 2012 at 07:44:08AM +0100, Bart wrote:
>    Now to make a seperate plugin out of it :) Not sure if I'm able to make 
> something for the CPAN
>    repository, but I'll see how far I can get. (first I'd like to see how 
> this works as a
>    seperate plugin along with to the CustomFieldsOnUpdate plugin).

These days, I usually install Dist::Zilla::MintingProfile::RTx and run
dzil -P RTx My-Custom-RT-Module and then put it in source control and
edit away.  I realize that may be a slightly higher barrier to entry
than you want, and you can usually get away with judicious renaming /
copying from an existing module.  The most common things you'll need
to touch include lib/RT/Extension/ModuleName.pm (renaming the file and
the package line) and also updating the package line in Makefile.PL.

If you're familiar with building a normal CPAN extension, the only
real magic in an RT extension is the RTx line in Makefile.PL.  If
you're not familiar with building CPAN extensions, there's a bit more
framework to wrap your head around.

-kevin

Attachment: pgpxvkovgnTQD.pgp
Description: PGP signature

--------
RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5 & 6, 2012

Reply via email to