Javascript Bundle Definition in Plone 5

I defined my resource directory in the configure.zcml file:

<plone:static
    type="plone"
    name="stuff.dropdownmenu"
    directory="static" />

I defined my JS resource in the registry.xml file:

<records
    prefix="plone.resources/stuff"
    interface='Products.CMFPlone.interfaces.IResourceRegistry'>

    <value key="js">++plone++stuff.dropdownmenu/stuff.js</value>

</records>

My question is: what is the correct tag element value in the Bundle definition:

<records
    prefix="plone.bundles/stuffdropdown"
    interface='Products.CMFPlone.interfaces.IBundleRegistry'>
    <value key="resources" purge="false">
        <element>???<element>
    </value>
    <value key="enabled">True</value>
</records>

Is this part of stuffthe attribute prefix or ++plone++stuff.dropdownmenu/stuff.js?

Regards

+4
source share
1 answer

I found in CMFPlone registry.xml that part of the prefix is ​​the correct option. The resource definition is here in the same file: CMFPlone registry.xml

+1
source

Source: https://habr.com/ru/post/1622181/


All Articles