Adding position specification to file resource registration

- so base scripts and styles can be made to appear in the source before the other scripts and styles

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-07-21 08:54:28 -07:00
parent 9d7efb58f9
commit 5723255248
15 changed files with 65 additions and 35 deletions

View File

@@ -1,8 +1,8 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Orchard.Mvc.Html"%><%
<%
// a CSS file for styling things (e.g. content item edit buttons) for users with elevated privileges (in this case, anyone who is authenticated)
if (Request.IsAuthenticated) { Html.RegisterStyle("special.css"); }
Html.RegisterScript("jquery-1.4.2.js"); // <- change to .min.js for use on a real site :)
Html.RegisterFootScript("base.js");
Html.RegisterScript("jquery-1.4.2.js", "1"); // <- change to .min.js for use on a real site :)
Html.RegisterFootScript("base.js", "1");
%>