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

default.YAML issue for modular blueprints

Solved by Mick View solution

Started by Mick 8 years ago · 2 replies · 934 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, 6 years ago
13 1707 6 months ago
Forms & Blueprints · by Hugo Oliveira, 7 months ago
0 346 7 months ago
Forms & Blueprints · by Flachy Joe, 8 months ago
9 456 8 months ago
Forms & Blueprints · by Augustus, 8 months ago
7 469 8 months ago
Forms & Blueprints · by Julien, 8 months ago
10 498 8 months ago