Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

default.YAML issue for modular blueprints

Solved by Mick View solution

Started by Mick 9 years ago · 2 replies · 1144 views
9 years ago

Hi,

I have added a new tab in the default.yaml in "user/mytheme/blueprints

title: Mapajo setup
'@extends':
type: default
context: blueprints://pages
form:
fields:
tabs:
type: tabs
active: 1
and so on

It's works and i have the ability to setup each primary page and subpages.

The issue is that when i use a modular yaml with its own customized fields, the system also display the customized fields of the default.yaml.
Mycustom.yaml contains :

title: Features
'@extends':
type: default

I have also added a default.yaml in my modular folder which not display the main tab as expected.

For each custom.yaml in my modular folder, how can i extend the default.yaml in my modular folder instead of the one in the blueprints folder ?

Not sure to be very clear 🙂

Thanks

9 years ago

Hi,

Instead of explaining what i have done, i rather explain what i would like.

When i create a default page or a modular page, i would like a new customized tab. That's the reason why i have create my own default.yaml in my theme folder and it's well working.

The matter is that i don't want to see this customized tab in my "modular template" Features.yaml for example

Thank you

9 years ago Solution

Hello,
I have found a solution.
The graal is very simple :
'@extends':
type: modular/default
instead of
'@extends':
type: default

How to become crazy with 8 characters ....

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Anna, 2 days ago
2 53 16 hours ago
Forms & Blueprints · by Anna, 3 days ago
7 82 16 hours ago
Forms & Blueprints · by Anna, 1 week ago
5 186 6 days ago
Forms & Blueprints · by TomW, 1 month ago
3 379 1 month ago
Forms & Blueprints · by Japhy, 2 months ago
2 595 2 months ago