I tried set dynamically category page layout base on admin configuration.
But I can't set it use ifconfig
.
Can you please help me set the layout dynamically.
Thanks in advanced.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI tried set dynamically category page layout base on admin configuration.
But I can't set it use ifconfig
.
Can you please help me set the layout dynamically.
Thanks in advanced.
There are several layout files available for the category page in Magento 2, the main files being located under app/code/Magento/Catalog/view/frontend/layout
folder:
catalog_category_view.xml
catalog_category_view_type_default.xml //adds the left side navigation bar
catalog_category_view_type_default_without_children.xml //does not add the left side navigation bar