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.
 asked Aug 3, 2016 at 9:53
 
 
 
 Mr Tim 
 
 3432 gold badges4 silver badges10 bronze badges
 
 - 
 plz show your code for layout, which code have you tried?Rakesh Jesadiya– Rakesh Jesadiya2016年08月03日 09:57:14 +00:00Commented Aug 3, 2016 at 9:57
- 
 Sorry, I don't have any code, because I could't find the correct syntax.Mr Tim– Mr Tim2016年08月03日 10:27:33 +00:00Commented Aug 3, 2016 at 10:27
1 Answer 1
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
 Piyush
 
 5,9249 gold badges35 silver badges67 bronze badges
 
 default