Skip to content

It is possible to define different "preview" by "variants" ? #352

Description

@steveoriol

for example:

[...]
  variants:
    default:
      label: Défaut
      description: Affichage normal.
    teaser:
      label: Teaser
      description: Affichage Teaser.
  fields:
    nom:
      type: text
      label: Nom
      description: Nom du produit.
      preview:
        default: 'Lave de strombolli'
        teaser: 'Lave de ....'
    visuel:
      type: image
      label: Visuel produit
      description: Visuel du produit.
      preview:
        default:
          theme: image
          uri: https://via.placeholder.com/220
          width: 220
          attributes: {}
        teaser: 20
[...]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions