Skip to content

Conversation

@gerrits-ecommerce
Copy link

@gerrits-ecommerce gerrits-ecommerce commented Mar 18, 2024

This makes it possible to define a Magewire component in a page_layout file, configure a category (or CMS page, etc.) to use this layout file, and have the component function as expected.

This functionality can be tested using the module below:
reproduction.zip

In the current Magewire codebase; if you configure a category to use the test layout that this module defines and load that category the initial render will succeed, but any changes will result in a 404 error because the Magewire Module cannot be found in the default catalog_category_view template.

With this change the module will function.

@gerrits-ecommerce
Copy link
Author

gerrits-ecommerce commented Mar 18, 2024

As Willem and I already discussed on the Hyva Slack I'm not 100% sure what the performance impact of this change will be. My local testing seems to indicate the impact is minimal to none. But if anyone with more expertise in this area has additional input I'd be happy to hear that.

@wpoortman wpoortman changed the title Add layout to fingerprint to enable layout-level Magewire components V1: Add layout to fingerprint to enable layout-level Magewire components Jun 2, 2025
@wpoortman wpoortman changed the base branch from main to 1.x June 2, 2025 19:45
@wpoortman wpoortman added the V1 label Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants