[rt-devel] CSS/JS Files adding from Plugin

Ruslan Zakirov ruz at bestpractical.com
Fri Jun 7 13:01:02 EDT 2013


Hi,

Use methods in extensions. That doc you referenced is more for admins to do
local and quick customizations.


On Fri, Jun 7, 2013 at 4:52 PM, Brumm, Torsten / Kuehne + Nagel / Ham GI-ID
<torsten.brumm at kuehne-nagel.com> wrote:

>  Hi Developers,
>
> whats the best way to add custom css/js files from a plugin into RT?
>
>
>
> From customizing doc (
> http://bestpractical.com/rt/docs/4.0/customizing/styling_rt.html) it is
> recommended to
>
>
>
> Set( @CSSFiles, ('my-site.css') );
>
>
>
>
>
> But in many Extensions I find this way:
>
>
>
> RT->AddStyleSheets('module.css')
>
>
>
> RT->AddJavaScript("module.js");
>
>
>
> Called from the Extension::Module.pm
>
>
>
> Are both working the same way? Will both ways minified?
>
>
>
> Greetins
>
>
> Torsten
>
>
> Kühne + Nagel (AG & Co.) KG, Geschäftsleitung: Hans-Georg Brinkmann
> (Vors.), Dirk Blesius, Reiner Heiken, Holger Ketz (Stellv.), Jan-Hendrik
> Köstergarten (Stellv.), Bruno Mang, Christian Marnetté, Jens Wollesen,
> Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878,
> Persönlich haftende Gesellschaft: Kühne & Nagel A.G., Sitz:
> Contern/Luxemburg Geschäftsführender Verwaltungsrat: Karl Gernandt
>
>
>
> --
> RT Training in Seattle, June 19-20: http://bestpractical.com/training
>



-- 
Best regards, Ruslan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20130607/274a0125/attachment.html>


More information about the rt-devel mailing list