-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Extending sections or using mixins in plugin sections doesn't work as expected #6809
Comments
Same issue was posted 1 year ago in forum https://forum.getkirby.com/t/how-to-extend-a-section/30517 but no replies. |
@distantnative After long hours I found a clue for you. When I remove the load() method of the mixins, extending works. I think when extends is present, the load method of the mixins disables or overrides the ModelsSection::load() method. I can take care the issue if solution is easy to implement. Currently I have no idea. |
Ohhhhh, but great catch @afbora to find the source of this. Maybe a workaround for now could be to not register the JS part as section but as component with For a real solution, maybe we need to consider not enforcing the section mixing but making it optional. Would be a breaking change for those plugins that then need to add it manually. |
I couldn't figure out how to implement the workaround exactly. Also, doesn't |
One would directly extend the models section of choice, e.g. in Tobi's case |
Description
This is what I tried:
index.php
Submissions.vue:
Result shows the empty pages section but clearly shows that no props are delivered (headline missing)
Let me know if you need anything else
Your setup
Kirby Version 4.4.1
The text was updated successfully, but these errors were encountered: