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

How to override the default page blueprint?

Started by Muut Archive 9 years ago · 4 replies · 1059 views
9 years ago

I'd like to override the default page blueprint from a theme. I tried to add the following to themes/mytheme/blueprints/default.yaml:

---yaml
'@extends':
type: default
context: blueprints://pages

form:
fields:
tabs:
type: tabs
fields:
customtab:
type: tab
title: Custom

[...]

TXT


However the tab doesn't show up. Do I need to create a blueprint for every page type to inherit from my modified default blueprint?
---yaml
'@extends':
9 years ago

Thanks, I tried this but it didn't work. It might be that the default.yml in my theme is not part of Grav\Common\Page\Types::systemBlueprints and does not get picked up as a fallback in scanTemplates() later on.

9 years ago

Make sure you call it default.yaml, not default.yml

9 years ago

Oh, I meant to write default.yaml (the file was named correctly).

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1329 9 years ago
Archive · by Muut Archive, 9 years ago
2 922 9 years ago
Archive · by Muut Archive, 9 years ago
2 4051 9 years ago
Archive · by Muut Archive, 9 years ago
1 2930 9 years ago
Archive · by Muut Archive, 9 years ago
3 1108 9 years ago