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

Allow to add any field type to media #45

Open
mrleblanc101 opened this issue Feb 25, 2023 · 3 comments
Open

Allow to add any field type to media #45

mrleblanc101 opened this issue Feb 25, 2023 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mrleblanc101
Copy link

What if we want to add a Checkbox ?
We want to allow admin to add a watermark using our CDN.

@mrleblanc101
Copy link
Author

mrleblanc101 commented Feb 25, 2023

Instead of:

->withCustomFields(
    ['copyright' => __('Copyright')],
    overwrite: false
)

Something like this ?

->withCustomFields([
        Text::make(__('Copyright'), 'copyright'),
        Checkbox::make(__('Watermark'), 'watermark'),
    ],
    overwrite: false
)

@mrleblanc101
Copy link
Author

mrleblanc101 commented Feb 27, 2023

We'd also love to add Relationship with media. For exemple: Tagging people (from our people table, not just plain text) in an image.

->withCustomFields([
        Text::make(__('Copyright'), 'copyright'),
        Checkbox::make(__('Watermark'), 'watermark'),
        Tags::make(__('People'), 'people'),
    ],
    overwrite: false
)

@mrleblanc101
Copy link
Author

mrleblanc101 commented Feb 27, 2023

@Tarpsvo Tarpsvo added enhancement New feature or request help wanted Extra attention is needed labels Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants