X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fdocs%2Fextensions.pod;fp=rt%2Fdocs%2Fextensions.pod;h=502e37f28bc6dbe4cbf59518ea6f13de998bf088;hp=0000000000000000000000000000000000000000;hb=1c538bfabc2cd31f27067505f0c3d1a46cba6ef0;hpb=4f5619288413a185e9933088d9dd8c5afbc55dfa diff --git a/rt/docs/extensions.pod b/rt/docs/extensions.pod new file mode 100644 index 000000000..502e37f28 --- /dev/null +++ b/rt/docs/extensions.pod @@ -0,0 +1,102 @@ +=head1 Introduction + +RT has a lot of core features, but sometimes you have a problem to solve +that's beyond the scope of just configuration. The standard way to add +features to RT is with an extension, or plugin -- RT uses the terms +interchangably. + +=head1 Finding extensions + +Most of the extensions written by Best Practical (and quite a few +contributed by the community) are available from CPAN; a L will turn +up most of them. The Best Practical website also maintains a list, at +L + +=head1 Installing extensions + +RT extensions should be installed by downloading the C<.tar.gz> file for +the extensions, extracting it (with C), and +following the instructions in its included F. + +The instructions under C in the F always take +precedence over those found here. In general, however, the process is +as follows: + +=over + +=item 1. + +B> to check for dependencies, and minimum +versions of RT. If your RT is in an unusual location (not +C), you may need to set the C environment variable to +the root of your RT location. + +=item 2. + +B> to prepare the package for installation. + +=item 3. + +B>; you may need to run this step as C, or at +least a user that has permission to install into RT's directories. + +=item 4. + +If the extension contains database changes or new queues, scrips, +templates, or the like, you will need to B> to install +them. Not all extensions have database changes, and most of them only +need this step run when they are first installed, and not on later +updates. Refer to the C section of the module's +documentation. + +=item 5. + +B By default, newly installed +plugins are not enabled. On RT 4.2, each plugin should be enabled by +the C command: + + Plugin( 'RT::Extension::Example' ); + Plugin( 'RT::Extension::Sample' ); + + +On RT 4.0, enabling them instead requires adding them to the C<@Plugins> +configuration: + + Set( @Plugins, 'RT::Extension::Example', 'RT::Extension::Sample' ); + +=item 6. + +B that the extension requires. Many +options that must be set before the plugin can be used. Read the +documentation carefully. + +=item 7. + +Next, B. RT caches the files it serves, and installing +a plugin requires clearing this cache to ensure that the changes are +served. This is done by removing files in the +F directory: + + rm -rf /opt/rt4/var/mason_data/obj + +This step may not be necessary if the extension does not affect RT's +display. + +=item 8. + +Finally, B. The steps for this will vary from +webserver to webserver. + +=back + +Again, the above are generalizations. The C shipped with the +extension always takes precedence over the above steps. + + +We do not suggest using the command-line C or C client to +install RT extensions, despite them being available from CPAN. Those +command-line clients are not aware of steps 4-8 listed above, and may +result in an incomplete installation. + +=cut