Disable CSS / JS merge in registry.xml in Plone

Is it possible to disable CSS / JS file merge in css / js registry.xml in Plone?

Something like that:

<javascript id="++my++theme/javascripts/myscript.js" mergeble="False" /> 

You can enable / disable caching and other parameters, for example. cssregistry.xml with cacheable = "False" or so. But is there a way to disable merging? There is nothing about this in the Plone documentation.

Thanks!

+4
source share
1 answer

OK, this is hardly intuitive, but the option you are looking for is "cookable = false". See http://docs.plone.org/develop/addons/javascript.html#registering-javascripts-to-portal-javascripts

You could also do this through ZMI ( http://yoursite.example.org/portal_css/manage_cssForm ), where the option is more obvious, and then export the XML registry from the portal_setup tool. This way you will see exactly the correct syntax.

+8
source

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


All Articles