<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
code
{font-family:"Courier New"}
pre
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New"}
span.E-MailFormatvorlage17
{font-family:"Calibri","sans-serif";
color:windowtext}
span.HTMLVorformatiertZchn
{font-family:"Courier New"}
.MsoChpDefault
{font-family:"Calibri","sans-serif"}
@page WordSection1
{margin:70.85pt 70.85pt 2.0cm 70.85pt}
div.WordSection1
{}
-->
</style>
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi Developers,</span></p>
<p class="MsoNormal"><span lang="EN-US">whats the best way to add custom css/js files from a plugin into RT?</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">From customizing doc (</span><a href="http://bestpractical.com/rt/docs/4.0/customizing/styling_rt.html"><span lang="EN-US">http://bestpractical.com/rt/docs/4.0/customizing/styling_rt.html</span></a><span lang="EN-US">)
it is recommended to </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="line-height:14.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Courier New"; color:black">Set( @CSSFiles, ('my-site.css') );</span><span lang="EN-US" style="font-size:10.5pt; font-family:"Courier New"; color:black"></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">But in many Extensions I find this way:</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">RT->AddStyleSheets('module.css')</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">RT->AddJavaScript("module.js");</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Called from the Extension::Module.pm</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Are both working the same way? Will both ways minified?</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Greetins</span></p>
<p class="MsoNormal"><span lang="EN-US"><br>
Torsten</span></p>
</div>
<p><br>
<font face="Arial" size="1">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</p>
</font>
</body>
</html>