It also says that I can’t use the file upload field on a page and that I should use pagemediaselect…but when I add that I can’t upload files directly in the page anymore
All I need is to have one file upload form for one page and remove the default text box because it won’t be used. Why is this so complicated to set up. I’d gladly modify the default blueprint file because I’ll be making custom ones for each page but I can’t figure out where it is located. I don’t want to use it but it’s the only one that has a working file upload form. All I want is example code to set up a mini gallery section that will just have 5-10 photos on a modular page
In your theme, add a blueprints/ folder and add a YAML file with the name of the page template you added. For example if you add a blog page template. add a blueprints/blog.yaml file. You can find an example of this directory in the Antimatter theme.
With Grav 1.1 you are able to use the file field too.
I suggest you extend default to have the normal page options available, but if you want to remove some fields, you can do it with unset@, like in this example page blueprint with a file upload field:
@flavio I’m having the same issue - I tried your blueprint but I have the following error: Whoops \ Exception \ ErrorException (E_ERROR) Maximum function nesting level of '100' reached, aborting!