Skip to content

Unify the use of the optional preview_image_link across Volto #5630

Description

@sneridagh

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    No status
    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions