richardhj/contao-ajax_reload_element

change palette in an eventlistener

fritzmg opened this issue · 3 comments

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.

Like the onload_callback?

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

Implemented in #21