2

I want to overwrite the "Display Mode" backend setting of a certain category via layout xml file (e.g. catalog_category_view_id_XYZ.xml).

Any idea how to update the layout handle?

I want to do this via layout xml file, so I can populate the category during a certain period of time (christmas offers should only be seen during december) with a scheduled child theme and the rest of the year there should only be the static block.

Cheers, Juha

1 Answer 1

3

I don't think you can set this in Layout XML, and even if you can the admin value usually overwrites anything set in Layout XML.

You can also schedule the display mode, so set the from and to date and change the display mode.

enter image description here

3
  • Agree with @Ben, +1 for your answer :) Nov 13, 2018 at 2:01
  • thank you for your quick reply. unfortunately this feature is not present in magento2.1.5
    – juhanix
    Nov 14, 2018 at 8:43
  • Are you using the community/open-source/free edition? I believe scheduling is only in the commerce/enterprise edition. If this is the case I'm not aware of a way you can achieve this, maybe there are plugins that can help.
    – Ben Crook
    Nov 15, 2018 at 14:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.