I'm trying to allow a user to set a custom category template via the design tab, which is straightforward to implement - however, I want to apply different layout instructions in cases where this specific template has been selected.
I'm wondering what a good practice approach would be here - I don't really want the user to have to add custom layout xml in the design tab to generate a custom layout handle I can then work with, as it's another step and not particularly user friendly.
On the other hand, I'm not sure the selection of that custom template is enough for me to be able to intercept in a clean way.
Would an observer to intercept on
controller_action_layout_load_before
to check the category template being used be the only possible/clean solution here?
Grateful for any pointers.