In Plone 5, how can I enable and ORDER a resource, for instance in
plone-legacy, from my site addon?
I want to activate
resource-plone-app-jquerytools-js. Without adding RequireJS wrappers, I guess it can only go in
plone-legacy bundle, and I also need it in a certain position: after
resource-plone-app-event-event-js. I can make that TTW by drag'n'dropping the resource, but exporting with
portal_setup wouldn't suffice cause in my addon I'd like to use
purge=false, like this:
<?xml version="1.0"?> <registry> <records prefix="plone.bundles/plone-legacy" interface='Products.CMFPlone.interfaces.IBundleRegistry'> <value key="resources" purge="false"> <element>resource-plone-app-jquerytools-js</element> </value> </records> </registry>
Is something like
insert-after possible? If not, should we implement it?