-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New handles for the Category, Product and CMS pages #102
Comments
Hi. Thank you for your proposal. Add handles to category page: "CATEGORY_2_child_dvds" Add category handle to product page: Add attribute set handle to product page: |
Thanks for responding and implementing this feature :)
That requires me to update the XML for each new category (admin, files, doesn't matter, will have to update somewhere), think that solution is a bit less smooth (especially with automatic imports), but I don't really have a better solution. The other suggestions are fine, dont really care how they are written down, just that they are :) |
Cant we have an attribute in categories that let's us specify a category-handle manually? I know, it is still user input - but then it would be clear, that the input affects the layout. |
There really isn't that much difference to require someone to copy some XML or to copy some string: Example XML (this is for Magento 1, but I think Magento 2 will be about the same): <update handle="catalog_category_my_custom_handle" /> |
The Technical Task created to resolve this problem. |
[Mavericks] Re-factor product end-to-end tests
MAGETWO-53557: [Github] ACL Error - Admin user can't change the attributes set magento#4061
Eliminate usage of Zend_Mime from Magento 2 Open Source
- Merge Pull Request magento/graphql-ce#102 from magento/graphql-ce:graphql-fix-the-category-tree-depth-calculation-issue - Merged commits: 1. 9116d82
…tore_id from … magento#102 - Merge Pull Request magento-commerce/async-import#102 from comwrap/async-import:2.3-develop-bulk-api-multistore-hot-fix - Merged commits: 1. fd6cf5e 2. 80732c8 3. 51ac4d8 4. 331e311 5. dad12c6 6. 81ecd90 7. ab2f000 8. 48104dc 9. 460a249 10. c336e36 11. 038615b 12. fb06c33 13. 06bc3a2
Merging MC-20181 changes to MC-20644 branch
Not sure what it was like in 2012 but that would be nice to have possibility to disable additional (product_id,sku/category_id) handles. |
@ilnytskyi Wow, that is an old issue! I don't thing you'll get any meaningful response. In 2012 this looked like a great idea, but not so much any more ;) |
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:
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 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):
The text was updated successfully, but these errors were encountered: