-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Create new contents on demand #2049
Create new contents on demand #2049
Conversation
Instead of in the view
If new contents have been defined on the elements definition, but they are not existing yet we create them on demand. This happens during rendering (speak loading) elements in the elements window during page edit. Ideally we would only instantiate them, but since the content editors expect a persisted content we cannot do that. This also closes AlchemyCMS#2031
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YESSS
This is very helpful. Thanks! Any plans to back-port this to 5.1 & 5.2? If it's not already planned, mind if I cook up a PR for that? |
Not planned yet. But happy to ship this with 5.1 and 5.2 if you open PR(s). |
…-on-demand Backport #2049 to 5.1
What is this pull request for?
If new contents have been defined on the elements definition, but they are not existing yet we create them on demand.
This happens during rendering (speak loading) elements in the elements window during page edit. Ideally we would only instantiate them, but since the content editors expect a persisted content we cannot do that.
Thanks @mamhoff for that smart idea.
This also closes #2031
Checklist