-
Notifications
You must be signed in to change notification settings - Fork 68
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
[BUG] Impossible to override SwXXX components (?) #354
Comments
For me, it looks like you are right. At the moment you need to overwrite the CMS Components that you want to change and use your "customized" SwProductCard inside this. If you only change CmsElmentProductBox this will only help for this one CMS Element. But SwProductCard is used in 4 Files inside public/cms. @patzick I guess we already talked about making this a way easier? Edit: We should also update the example in Docs when this is not possible. |
This needs to be corrected in the documentation. Component Overwriting that way gives you way more flexibility and no problem with future upgrades of the package itself. So just create |
What to do here? 😀 |
Is there an existing issue for this?
Current Behavior
The documentation states that we should be able to override the
packages/cms-base/components/SwProductCard.vue
component but this doesn't actually work.It seems like we can only override the components in
packages/cms-base/components/public/cms
, is that correct?So to override the ProductCard layout, we would need to override
packages/cms-base/components/public/cms/element/CmsElementProductBox.vue
as a 1:1 copy of the originalCmsElementProductBox.vue
but referencing a custom implementation ofProductCard.vue
?Thank you for your help
Expected Behavior
No response
Steps To Reproduce
No response
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: