Re: how to save an image inside an folderish page that hasn't been saved yet?
"David Glick (Plone)" <david.glick-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2/6/14, 4:19 PM, Dylan Jay wrote: > On 6 Feb 2014, at 9:21 pm, Armin Stroß-Radschinski <[email protected]> wrote: > >> -1 on default central mediarepositories. (from the user point) they need a proper concept related to the use case. From the storage point they have pro and cons as we see. >> >> Plone's strenght is the possibility to manage security and workflow by location in the object tree. Even field level security can be simply managed by nested objects. When you work with "dumb" containers you have to apply this logic on application level. That hurts. This is e.g. why Plomino fails on certain security challenges. >> >> Lets keep close to the issue, as Davis wrote: How to deal with images in not saved objects. Some of the ideas in this thread (a "draft" storage) seems cool. >> >> The issue with the UID can be easily solved. Issue the UID "at once"! You have enough of them. No need to save ressources. This is why they are there: To avoid conflicts. And drop the UID later if the image or object is dropped. You can even swap or unite them later, as long as you get all instances. >> >> One prominent issue that I saw in the past with media storage was to tell a user, why he could not reuse an image already uploaded for the news main image or this news image elsewhere (without tricks). > I agree that that its confusing that we have news images as a special field which doesn't work the same way as other images. One thing that would be nice with the folderish content is to remove the special image field on news and replace it with a way to make an normal image (contained in that item) as the headline image. The same technique could be used so that any page could have an nominated headline image that gets used in listing that have preview images. I'm not really sure how this would work yet however. Maybe a reference field on all content to pick the image? > If we do this then news items don't need to be a special news content type. We could use some other kind of marker to indicate its news such as a marker interface. The advantage of that is you can turn a page into news or news into a page. > plone.app.contenttypes already switched to implementing this with a "lead image" behavior that can be enabled for other content types. The image is still not stored as a separate content item though, which I think is appropriate for this kind of image. ------------------------------------------------------------------------------ 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=121054471&iu=/4140/ostg.clktrk