i searched the entire help center
I could not find what i was looking for, basically i need to know where i would set the following frontmatter “global” for each new Default page created:
access:
site.login: true
site.admin: true
I don’t want any page accessible without login, for now I am manually adding the 3 lines to each new page i create but i want those 3 lines included from the start already, i could not find the config file to set this default behaviour to…
@mikulabc If you are using the Admin panel to create pages, the following might be a solution. If you create pages manually using an editor I would not know of any Grav solution.
Grav allows you to extend the blueprints used by Admin to generate pages. Have a look at the docs on Page Blueprints.
In the following example, a new section ‘Access’ with two new fields will be added to the bottom of tab ‘Advanced’. The defaults are being set to ‘true’. Every time a page is created using Admin panel, the two fields are added to the frontmatter of the page.