A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
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.