8000 Max block attachments option by jimsafley · Pull Request #2190 · omeka/omeka-s · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Max block attachments option #2190

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 3 commits into from
May 9, 2024
Merged

Conversation

jimsafley
Copy link
Member

This PR adds an option to set a maximum number of attachments allowed in a block. A developer would set $maxAttahments when calling the blockAttachmentsForm() view helper. It's more of a superficial maximum, rather than an enforced one, because it simply hides the "Add attachment" button when the number of attachments reaches the maximum. It also hides the bulk add controls in the sidebar if a maximum is set.

The use case I'm working on that needs this feature is the ImageAnnotate module. I would like there to be a way to prevent more than one attachment on the block: one block, one image to annotate.

@jimsafley jimsafley requested a review from zerocrates May 3, 2024 19:00
@zerocrates zerocrates merged commit ebaf3b3 into develop May 9, 2024
5 checks passed
@zerocrates zerocrates deleted the max-block-attachments-option branch May 9, 2024 20:03
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