Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Adminpanel: Disable pagemedia upload or disable multiple upload

Started by Muut Archive 9 years ago · 1 replies · 378 views
9 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.

9 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 1349 9 years ago
Archive · by Muut Archive, 9 years ago
2 934 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2946 9 years ago
Archive · by Muut Archive, 9 years ago
3 1118 9 years ago