私は nopCommerce に取り組んでおり、スクリプトと css が次のように Root_Head.cshtml ファイルに含まれていることに気付きました
Html.AppendCssFileParts("~/Content/smoothness/jquery-ui-1.8.17.custom.css");
Html.AppendScriptParts("~/Scripts/public.ajaxcart.js");
Html.AppendScriptParts("~/Scripts/public.common.js");
Html.AppendScriptParts("~/Scripts/jquery-ui.min.js");
Html.AppendScriptParts("~/Scripts/jquery.validate.unobtrusive.min.js");
Html.AppendScriptParts("~/Scripts/jquery.validate.min.js");
Html.AppendScriptParts("~/Scripts/jquery.unobtrusive-ajax.min.js");
Html.AppendScriptParts("~/Scripts/jquery-1.7.1.min.js");
同じドキュメントの後半で、Head に埋め込まれています。
@Html.NopCssFiles(this.Url, ResourceLocation.Head)
@Html.NopScripts(this.Url, ResourceLocation.Head)
これにより、スクリプト/ cssをヘッダー/フッターに埋め込むためのhtml出力が生成され、相対URLで定義されます...
<link href="/Content/smoothness/jquery-ui-1.8.17.custom.css" rel="stylesheet" type="text/css" />
<script src="/Scripts/jquery-1.7.1.min.js"></script>
ルート ファイルを変更せずに、プラグインから URL を別の URL に変更する必要があります。したがって、これが完了すると、次のようになります。
<link href="http://someurl.com/Content/smoothness/jquery-ui-1.8.17.custom.css" rel="stylesheet" type="text/css" />
<script src="http://someurl.com/Scripts/jquery-1.7.1.min.js"></script>
これをプラグインからどのように拡張できるかについてのアイデアはありますか? どのように進めればよいですか?