mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
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:
@@ -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");
|
||||
%>
|
Reference in New Issue
Block a user