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

Make dynamic/live teaser without additional requests #6024

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

pbauer
Copy link
Sponsor Member

@pbauer pbauer commented May 16, 2024

PLIP: #6023
Depends on PR for plone.restapi: plone/plone.restapi#1788

Replaces #4790

Copy link

netlify bot commented May 16, 2024

Deploy Preview for plone-components canceled.

Name Link
🔨 Latest commit 0b28141
🔍 Latest deploy log https://app.netlify.com/sites/plone-components/deploys/66472fd7daa0020008a100d4

Copy link

netlify bot commented May 16, 2024

Deploy Preview for volto failed. Why did it fail? →

Name Link
🔨 Latest commit 0b28141
🔍 Latest deploy log https://app.netlify.com/sites/volto/deploys/66472fd794a2620008c57087

@pbauer pbauer mentioned this pull request May 17, 2024
3 tasks

const schema = data.overwrite
? blocksConfig[data['@type']].blockSchema({ intl })
: blocksConfig[data['@type']].enhancedSchema({ intl });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about if instead of a new schema we make that check in existing one since by default its using the override schema(enhanced schema). Something like fields: ['href,' 'overwrite', data.overwrite && ('preview_image, description,...)]

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

Successfully merging this pull request may close these issues.

None yet

2 participants