Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
steveoriol opened this issue May 18, 2022 · 0 comments
Open

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

steveoriol opened this issue May 18, 2022 · 0 comments

Comments

@steveoriol
Copy link

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
[...]
@steveoriol steveoriol changed the title Is it possible to define different "preview" by "variants" ? It is possible to define different "preview" by "variants" ? May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant