Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Adminpanel: Disable pagemedia upload or disable multiple upload

Started by Muut Archive 10 years ago · 1 replies · 450 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 2275 9 years ago
Archive · by Muut Archive, 9 years ago
2 1496 9 years ago
Archive · by Muut Archive, 9 years ago
2 4743 9 years ago
Archive · by Muut Archive, 9 years ago
1 3553 9 years ago
Archive · by Muut Archive, 9 years ago
3 1618 9 years ago