-
Notifications
You must be signed in to change notification settings - Fork 1
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
Handling of subobject storage for new items #6
Comments
imho the most sane option would be to create the object first (via minimal addform) then make sure the context for uploading objects is within that object |
That's feasible but my intention was to strive for a generic way of handling this issue that doesn't require modification of other code outside "collective.folderishtypes" to retain modularity. |
isn't p.a.drafts supposed to solve this? https://github.com/plone/plone.app.drafts |
@datakurre might be the best person to ask about p.a.drafts or other ways to solve this |
Drafts does not support that ootb. It could, but because of the added complexity community seems chosen path with minimal add form + edit form with real context. |
so to your knowledge there is no solution to adding images inside a folderish types when adding a page? @datakurre (other than having a central media folder). |
Early Mosaic had support for images as tiles (in persisten tile data) that worked already on add form. When CastleCMS was developed, add form as special case everywhere in code scared them and CastleCMS choose to show minimal add form and then show Mosaic editor only on already created page. |
To be honest a minimal add form seems like a good tradeoff to me. You
change cancel button to do a delete.
But if p.a.drafts is also very close to a solution why not use to solve
this problem?
…On Tue, 22 May 2018, 3:18 PM Asko Soukka ***@***.***> wrote:
Early Mosaic had support for images as tiles (in persisten tile data) that
worked already on add form.
When CastleCMS was developed, add form as special case everywhere in code
scared them and CastleCMS choose to show minimal add form and then show
Mosaic editor only on already created page.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACi5KSGn3BQC1Wlffg1OA-EQ_dWclz2ks5t08nNgaJpZM4UCpMl>
.
|
plone.app.drafts looks like a very good vector! Too bad it works on persisted objects only. I was talking with @jensens and maybe there's a clean way to implement a behavior as an addon that instantly saves a newly generated (folderish) type, then redirects to the edit form. |
Folderish types are designed to be able to contain content. However when you use collective.folderishtypes in Plone and you simply add a folderish item and edit it immediately you will see that all the assets you uploaded through the editor will be stored as siblings of the item you just created. This is due to the fact that the new item does not "exist" yet, that is, before it has been saved once.
That's somewhat surprising and unwanted in our usecase.
It would be great to find a good solution for that.
The text was updated successfully, but these errors were encountered: