Re: how to save an image inside an folderish page that hasn't been saved yet?
Martin Aspeli <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <CAPN0AAQd+bN_UM5-Muz=rEa5tk4zby=chKO3f1gZSpDNzTpauQ@mail.gmail.com> |
On 5 February 2014 11:55, Dylan Jay <djay-n0pU0XVUApFWk0Htik3J/[email protected]> wrote: > On 5 Feb 2014, at 8:31 pm, Martin Aspeli <[email protected]> wrote: > > > Sort of. More to do with annotations for persistent tiles, to be able to > save them before the object is created after the ad form completes. It's > moderately evil. > > > > David is right: images inside content space is not a great default. > > It think it would be a big change to force a single flat media space for > images. > I think images in content space works well. Allows for galleries etc. > Allows for organisation via folders. > It's made nicer when you can store them inside the page itself. > > plone.app.drafts seems like the right idea. It allows for images to be > removed if the save is canceled. But it doesn't look like its folderish and > I'm not sure how it will work with the image popup. > > p.a.drafts is just a temporary store. When you're on an "add" form, no content exists, so there's nowhere for the image to go. p.a.drafts gives a way to store some data temporarily and then copy it back onto the object when it is created. I think you'd need to do something "special" to put an image inside the newly created content. I think p.a.drafts has hooks that you can use for that. Martin ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Plone-developers mailing list Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/plone-developers