Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Adminpanel: Disable pagemedia upload or disable multiple upload

Started by Muut Archive 10 years ago · 1 replies · 472 views
10 years ago

Hey everyone,
Is there a way I can disable the default pagemedia form field or that I can make sure that the user can only upload one file in the pagemedia form field?

I tried adding this to my ../themes/mytheme/blueprints/event.yaml:

YAML
uploads:
  multiple: false

But this doesn't override the default behavior of the pagemedia form field.

10 years ago

You have to override the system/blueprints/pages/default.yaml by copying it and modifying it your theme, ie: user/your_theme/blueprints/pages/default.yaml. Full details on what you can do to remove fields etc can be found in the docs under Advanced Features.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2570 9 years ago
Archive · by Muut Archive, 9 years ago
2 1692 9 years ago
Archive · by Muut Archive, 9 years ago
2 4985 9 years ago
Archive · by Muut Archive, 9 years ago
1 3810 9 years ago
Archive · by Muut Archive, 9 years ago
3 1801 9 years ago