Questions tagged [update-handle]
Donates questions related to layout handles.
4 questions
9
votes
4
answers
7k
views
Magento 2: How to use the Layout Handle customer_logged_in?
Does Magento 2 have such handle as customer_logged_in? If yes how can I use it?
I tried to create
../view/frontend/layout/customer_logged_in.xml
and added there <referenceBlock name="content" ...
4
votes
1
answer
2k
views
Magento 2: replacement for the <PRODUCT_TYPE_simple>, <PRODUCT_TYPE_configurable> etc... product type specific layout handles
In Magento 1, we had some specific layout handles for each product types:
<PRODUCT_TYPE_simple>
<PRODUCT_TYPE_configurable>
<PRODUCT_TYPE_grouped>
<PRODUCT_TYPE_bundle>
<...
1
vote
1
answer
2k
views
How to update `catalog_category_view` using observer?
I am trying to set a root template to handler catalog_category_view through an observer. I know I can achieve it through layout update. But believe me I really need to dynamically set root template ...
10
votes
3
answers
18k
views
How to add custom layout handles programatically for Category View in Magento 2
So, I want to add a custom layout handle for all category view pages.. the handle that is supposed to be loaded depends on certain category parameters, so the handle needs to be added programmatically ...