Add handles to category page
If you are viewing a category: /products/dvds.html (category id: 5)
You'll get a handle by default: CATEGORY_5
We add the following:
Handle: CATEGORY_2_child_child
Category 2 is the root category for this store, so allows for store specific configuration. If the category path is
longer it will show something like CATEGORY_2_child_child_child
Handle: CATEGORY_2_child_dvds
This one is kinda cool, this one allows you have one layout for multiple childcategories. Imagine the following categories:
- /playgroup/books.html
- /kindergarten/books.html
- /elementary/books.html
All these categories will have the CATEGORY_2_child_books handle, so you can all style them the same!
Handle: CATEGORY_3_child
Child of a certain category.
If the category path is longer it will show something like CATEGORY_3_child_child.
Add category handle to product page.
The same as for the category applies, except everything is prefixed with PRODUCT_CATEGORY_ instead of CATEGORY_.
Add attribute set handle to product page
PRODUCT_ATTRIBUTE_SET_default
For styling based on the attribute set handle.
Add handles to CMS page
If you have the page: customerservice/faq/question_one, you'll get the following handles (same idea as for the categories):
CMS_PAGE_customerservice_child_child
CMS_PAGE_customerservice_faq_child
CMS_PAGE_customerservice_faq_question_one
Add handles to category page
If you are viewing a category: /products/dvds.html (category id: 5)
You'll get a handle by default:
CATEGORY_5We add the following:
Handle:
CATEGORY_2_child_childCategory 2 is the root category for this store, so allows for store specific configuration. If the category path is
longer it will show something like
CATEGORY_2_child_child_childHandle:
CATEGORY_2_child_dvdsThis one is kinda cool, this one allows you have one layout for multiple childcategories. Imagine the following categories:
All these categories will have the
CATEGORY_2_child_bookshandle, so you can all style them the same!Handle:
CATEGORY_3_childChild of a certain category.
If the category path is longer it will show something like
CATEGORY_3_child_child.Add category handle to product page.
The same as for the category applies, except everything is prefixed with
PRODUCT_CATEGORY_instead ofCATEGORY_.Add attribute set handle to product page
For styling based on the attribute set handle.
Add handles to CMS page
If you have the page: customerservice/faq/question_one, you'll get the following handles (same idea as for the categories):