Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
Your message looks very strange but it's a great idea nontheless. We have now added a sort index is used like this:
[EPiServer.Shell.Gadgets.Gadget]
[EPiServer.Shell.Web.ScriptResource("JScript1.js", SortIndex = 100)]
[EPiServer.Shell.Web.ScriptResource("JScript2.js", SortIndex = 50)]
When adding resources on a gadgetController, ex:
[CssResource("Content/MyCss.css")] [ScriptResource("Script/MyScript.js")] [Gadget]
public class MyGadget: Controller
{
public ActionResult Index(Guid gadgetId)
{ return View(); }
You sometimes want them to be added in a specific order. I.e a SortIndex attribute.