Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Adminpanel: Disable pagemedia upload or disable multiple upload

Started by Muut Archive 10 years ago · 1 replies · 523 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 Muut Archive, 10 years ago
1 673 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5337 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago