Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blueprints "ignore" field removes tab options but not the tab itself #620

Closed
benblee opened this issue Jan 21, 2016 · 1 comment
Closed
Assignees

Comments

@benblee
Copy link
Contributor

benblee commented Jan 21, 2016

Inheriting the "default" blueprint, but wanting to ignore a tab in it. This is a modular template blueprint.

Using ignore in the following code removes the options (content) in the tab, but does not remove the tab itself:

title: Showcase
@extends: default

form:
  fields:
    tabs:
      fields:
        advanced:
          fields:
            columns:
              fields:
                column1:
                  fields:
                    name:
                      default: modular/showcase
                      @data-options: '\Grav\Common\Page\Pages::modularTypes'
            overrides:
              fields:
                header.template:
                  default: modular/showcase
                  @data-options: '\Grav\Common\Page\Pages::modularTypes'

        styles:
          type: tab
          title: Row Style
          fields:
            header.styles:
              type: textarea
              label: CSS Classes

        foundation:
          type: ignore

The Gitter conversation is here:
https://gitter.im/getgrav/grav?at=56a0614928b4586d1c8de357

The Grav Docs are here:
http://learn.getgrav.org/advanced/blueprints#special-form-fields-available-only-in-admin

This is using the Bones Site Skeleton on the "/modular/showcase.yaml" blueprint for testing:
https://github.com/smartgravity/grav-skeleton-bones-site/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants