PLIP (Plone Improvement Proposal)
Responsible Persons
Proposer: Víctor Fernández de Alba (@sneridagh)
Seconder:
Abstract
Currently, Plone/Volto use preview_image field by default in content types to store images as an attribute (NamedBlobImage) in the DX content type itself. This could lead to duplication in case you want to reuse images across your content. To solve this, we created a preview_image_link field that stores a RelationChoice pointer instead (in the server as a resolveuid).
We need to make sure that Volto supports it OOTB in the same use cases that preview_image is used, and that nowhere it's hardcoded to use preview_image.
Motivation
Allow reusable images and open the door to a DAMS (Digital Asset Management System) in Plone.
Assumptions
No preconditions.
Proposal & Implementation
Search the codebase for preview_image usage and make sure that it does work for preview_image_link use case too.
Deliverables
- Acceptance fixture and tests for the
preview_image_link
- Documentation on how to use
preview_image_link
Risks
No risks.
Participants
PLIP (Plone Improvement Proposal)
Responsible Persons
Proposer: Víctor Fernández de Alba (@sneridagh)
Seconder:
Abstract
Currently, Plone/Volto use
preview_imagefield by default in content types to store images as an attribute (NamedBlobImage) in the DX content type itself. This could lead to duplication in case you want to reuse images across your content. To solve this, we created apreview_image_linkfield that stores a RelationChoice pointer instead (in the server as a resolveuid).We need to make sure that Volto supports it OOTB in the same use cases that
preview_imageis used, and that nowhere it's hardcoded to usepreview_image.Motivation
Allow reusable images and open the door to a DAMS (Digital Asset Management System) in Plone.
Assumptions
No preconditions.
Proposal & Implementation
Search the codebase for
preview_imageusage and make sure that it does work forpreview_image_linkuse case too.Deliverables
preview_image_linkpreview_image_linkRisks
No risks.
Participants