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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Forms & Blueprints

default.YAML issue for modular blueprints

Solved by Mick View solution

Started by Mick 8 years ago · 2 replies · 808 views
8 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

8 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

8 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 Ton Haarmans, 5 years ago
13 1139 4 months ago
Forms & Blueprints · by Hugo Oliveira, 5 months ago
0 63 5 months ago
Forms & Blueprints · by Flachy Joe, 6 months ago
9 137 6 months ago
Forms & Blueprints · by Augustus, 7 months ago
7 112 7 months ago
Forms & Blueprints · by Julien, 7 months ago
10 131 7 months ago