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

[Feature] Brick System #2718

Open
manstfu opened this issue Jan 28, 2025 · 0 comments
Open

[Feature] Brick System #2718

manstfu opened this issue Jan 28, 2025 · 0 comments

Comments

@manstfu
Copy link

manstfu commented Jan 28, 2025

Summary

A method to mark certain blocks as "Can't be deleted" and "Single-use only." This is helpful for creating a brick system without database migrations. Models would need a pre-filled block using this method

Describe the solution you'd like

@twillBlockTitle('Blog - Article')
@twillBlockIcon('content-editor')
@twillBlockGroup('app')

@twillBlockSettings([
    'canDelete' => false, // Prevent deletion
    'canDuplicate' => false // Prevent duplication
])

Additional context

The "Add Content" button should disappear if only that block is available and already in use.

These UI elements should be removed:
Image

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