Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

default.YAML issue for modular blueprints

Solved by Mick View solution

Started by Mick 9 years ago · 2 replies · 1002 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 FrViPofm, 4 days ago
5 86 4 days ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2113 7 months ago
Forms & Blueprints · by Hugo Oliveira, 8 months ago
0 597 8 months ago
Forms & Blueprints · by Flachy Joe, 9 months ago
9 690 9 months ago
Forms & Blueprints · by Augustus, 10 months ago
7 737 10 months ago