i have been working with the following tutorial: https://pimcore.com/docs/5.x/Development_Documentation/Best_Practice/Showing_Custom_Layouts_based_on_Object_Data.html and so far it is doing fine. My layout is getting changed but only if i press the reload - Button. Is there any possibility that i can trigger this automatically before the page is shown. I want to show only some fields for variants of a product.
Thank you for any kind of advice.