What should be the ...
 
Notifications
Clear all

What should be the acceptable and easiest way to do this, so that no new file creation and code update will be required after implementation:

1 Posts
1 Users
0 Likes
86 Views
(@benninkcarrol)
Posts: 687
Noble Member
Topic starter
 

Suppose in a store there are 500 categories and it's increasing as per the need. Let's say your frontend developer asked you to modify the header and include CSS files on some specific category pages based on the custom category attribute selection from backend.

What should be the acceptable and easiest way to do this, so that no new file creation and code update will be required after implementation:

  • A . create a new layout XML file for the category called catalog_category_view.xml and add the layout modification code
    B. create a new layout XML file for the category called catalog_category_view_selectable_<Category ID>_CustomLayout.xml
    and assign it to the needed categories from backend, and add the layout modification code in it.
    C. create a custom layout handle for the category using observer layout_load_before and add the layout modification code
    D. create a custom layout handle for the category using observer layout_load_after and add the layout modification code

Show Answer Hide Answer

Suggested Answer: C
 
Posted : 26/01/2023 11:33 pm
Topic Tags

Latest Adobe AD0-E704 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: