-
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
Make Custom Layout Update file selectable generally available in all categories, products and cms pages. #26901
Comments
Hi @gcampedelli. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @gcampedelli do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@sdzhepa Please, move this issue to the appropriate feature request repo. Thank you |
Is there anything news on this topic? At least it would then be possible to output basically different layouts in the frontend, I think this would even be very important.
|
Any news on this. The ability to have reusable layout updates for category, product and cms pages would be extremely useful |
In fact, I think it would make more sense to show these not for all products, but for the individual product types.
Example:
Benefits
|
After all this discussion, why don't I see a solution |
Because this is Magento :/ |
How are you not going to let people reuse design layout updates? Like, come on... Use common sense... Who wants to create duplicate files and issue more deployments? |
I created this guy here for now : https://github.com/gabrielgts/magento2-selected-layout Then I will try to make an MR with the functionality. |
Description (*)
Currently in version 2.3.4 Custom Layout Update has been removed to improve security which is great. But to add an update you have to create a xml file in relevant theme directory Magento_Cms, Magento_Catalog using this termination:
a) I tried this feature in using this termination "cms_page_view_selectable_mylandingpage_custom.xml"
b) It would be nice if we declare a file with custom layout update and it is generally available to be selected in all pages, categories and products.
Expected behavior (*)
a) Update Dev Docs to make it clear in which folder files have to be saved. => Magento_Cms for pages and Magento_Catalog for categories and products.
b) Have custom layout updates generally available for all pages, categories and products, so user can select and update layout without creating many files with same code over and over. For example:
catalog_category_view_selectable_<All Categories>_<Layout Update Name 1>.xml
catalog_category_view_selectable_<All Categories>_<Layout Update Name 2>.xml
cms_page_view_selectable_<All CMS Pages>_<Layout Update Name 1>.xml
cms_page_view_selectable_<All CMS Pages>_<Layout Update Name 2>.xml
and keep the current feature which is also great
Benefits
=> I think it would improve usability. Users can have a generally available custom layout update and specific available custom layout updates
Additional information
It would save time if user wants only to repeat an already made custom layout update.
The text was updated successfully, but these errors were encountered: