Combres and Sitefinity?
<add name="Sitefinity" type="Telerik.Sitefinity.Web.SitefinityHttpModule, Telerik.Sitefinity" />
Hi Ken Sykora,
If you want to load all of your css files in an optimized way, you do not need to use the Combres library. Sitefinity combines all stylesheets and scripts in one file out-of-the-box. You can load the sheets/scripts in your master page in various different ways (use the link tag or the Resource links control like this):
<sitefinity:ResourceLinks ID="ResourceLinks1" runat="server" UseEmbeddedThemes="false" > <sitefinity:ResourceFile Name="~/Sitefinity/WebsiteTemplates/test/App_Themes/test/css/main.css" /></sitefinity:ResourceLinks>Hi Svetoslav:
<sitefinity:ResourceLinks runat="server" UseEmbeddedThemes="false"> <sitefinity:ResourceFile Static="true" IsFromTheme="false" Name="~/assets/scripts/jquery.min.js"/> <sitefinity:ResourceFile Static="true" IsFromTheme="false" Name="~/assets/scripts/fancybox/jquery.mousewheel-3.0.4.pack.js"/> <sitefinity:ResourceFile Static="true" IsFromTheme="false" Name="~/assets/scripts/fancybox/jquery.easing-1.3.pack.js"/> <sitefinity:ResourceFile Static="true" IsFromTheme="false" Name="~/assets/scripts/custom-form-elements.js"/> <sitefinity:ResourceFile Static="true" IsFromTheme="false" Name="~/assets/scripts/global.js"/> </sitefinity:ResourceLinks>Hello,
Here's how to combine all the scripts with RadScriptManager (this will surely work) - in the example my files are called JScript1 and JScript2 and are located in folder Scripts inside the root of SitefinityWebApp:
1)In your master page, add this code just before the closing <form> tag:
<telerik:RadScriptManager runat="server" ID="Manager1" EnableScriptCombine="true"> <Scripts> <asp:ScriptReference Name="SitefinityWebApp.Scripts.JScript1.js" Assembly="SitefinityWebApp" /> <asp:ScriptReference Name="SitefinityWebApp.Scripts.JScript2.js" Assembly="SitefinityWebApp" /> </Scripts> </telerik:RadScriptManager>[assembly: WebResource("SitefinityWebApp.Scripts.JScript1.js", "application/x-javascript")][assembly: WebResource("SitefinityWebApp.Scripts.JScript2.js", "application/x-javascript")]<add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2011.3.1115.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>