[rt-devel] CSS/JS Files adding from Plugin
Brumm, Torsten / Kuehne + Nagel / Ham GI-ID
torsten.brumm at Kuehne-Nagel.com
Fri Jun 7 08:52:25 EDT 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20130607/b3676aaa/attachment.html>
More information about the rt-devel
mailing list