richardhj / contao-ajax_reload_element

AjaxReloadElement for Contao Open Source CMS
GNU Lesser General Public License v3.0
14 stars 5 forks source link

change palette in an eventlistener #11

Closed fritzmg closed 3 years ago

fritzmg commented 5 years ago

If an extension provides an additional module or content element and it is loaded after this extension, then the palette changes won't be applied to those, since the palette does not exist yet.

Thus it would be better to use an eventlistener with a very low priority to ensure that you can apply the palette changes to all modules and content elements.

richardhj commented 5 years ago

Like the onload_callback?

fritzmg commented 5 years ago

Yeah, but you would have to register that for all tables, which then again depends on the loading order...

fritzmg commented 3 years ago

Implemented in https://github.com/richardhj/contao-ajax_reload_element/pull/21