Open Eddcapone opened 3 years ago
Hi @Eddcapone. Thank you for your report. To help us process this issue please make sure that you provided the following information:
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:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, please, review the Magento Contributor Assistant documentation.
Please, add a comment to assign the issue: @magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
:clock10: You can find the schedule on the Magento Community Calendar page.
:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.
:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!
This is still a good idea in my oppinion.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!
This is still a good idea in my oppinion.
@Eddcapone yes this makes perfect sense. i too arrived at the same position as yours. can't find a way to enable/disable module without if-config.i overrode .html and .js files from module_checkout
I'd love to have this feature as well. Right now I implement this functionality with custom block in layout and rendering the original block as a child within the new block. This way ifconfig is usable, but it's a pretty ugly way to do it.
Please magento, accept and work on this feature.
We have every reason to implement this as a new feature. Please accept and work on this one.
@magento-devops As you can see, many people need this feature. Please consider working on it.
Would be great, in fact!
This would be really helpful!
Really good feature
This is the most intuitive approach to conditionally removing existing blocks from a custom module or theme.
Would be great to have this feature
Description (*)
If you are defining a new block, you can use
ifconfig
to only enable the block when a backend setting is true. This is not supported for referenceBlock. I created a module where I am modifiying the blockcontactForm
from the moduleModule_Contact
by replacing the template with my own.I also created a setting for my extension where I can toggle it on or off. The template should only get overriden, if the setting is set to true. So I added
ifconfig="company_contact/general/enabled"
to referenceBlockBut I get Element 'referenceBlock', attribute 'ifconfig': The attribute 'ifconfig' is not allowed., and therefor what I try is not possible.
Expected behavior (*)
It should not throw an error.
Benefits
More ways to customize magento