8000 Add preview property to disable the preview window in a channel by cloetensbrecht · Pull Request #407 · alineacms/alinea · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add preview property to disable the preview window in a channel #407

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

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

cloetensbrecht
Copy link
Contributor

Added a preview property to the schema TypeConfig inside Config.type to disable the preview on schema level:

apps/dev/scr/schema/Examples.tsx:

import {Config} from 'alinea'
import {Entry} from 'alinea/core'
import * as examples from './example'

export const Examples = Config.document('Examples', {
  contains: Object.values(examples),
  orderChildrenBy: {asc: Entry.title},
  fields: {},
  preview: false // This one is added to disable the preview when the preview is enabled on workspace or root level
})

Copy link
pkg-pr-new bot commented Feb 14, 2025

Open in Stackblitz

npm i https://pkg.pr.new/alineacms/alinea@407

commit: f8d2e2b

@benmerckx benmerckx merged commit e8965f0 into alineacms:main Feb 14, 2025
2 of 3 checks passed
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.

2 participants
0