0

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
2
  • plz show your code for layout, which code have you tried? Commented Aug 3, 2016 at 9:57
  • Sorry, I don't have any code, because I could't find the correct syntax. Commented Aug 3, 2016 at 10:27

1 Answer 1

0

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
answered Jun 22, 2017 at 5:54

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.