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

Order of form fields when extending blueprint #52

Closed
marcelgwerder opened this issue Mar 6, 2016 · 1 comment
Closed

Order of form fields when extending blueprint #52

marcelgwerder opened this issue Mar 6, 2016 · 1 comment
Assignees

Comments

@marcelgwerder
Copy link

Not quite sure if this belongs here but was the best match for me.

If I extend a blueprint to modify the content tab in the admin panel it looks like I don't really have control over the order of the fields. I want to add two fields below the title field, which I tried like this:

title: Employee
@extends:
    type: default
    context: blueprints://pages

form:
  fields:
    tabs:
      fields:
        content:
          type: tab
          title: Employee
          fields:
            content:
              type: ignore

            header.function:
              type: text
              label: Function

            header.picture:
              type: pagemediaselect
              label: Picture

            uploads:
              type: pagemedia
              label: PLUGIN_ADMIN.PAGE_MEDIA

Even if I add the uploads field again below the two existing fields the order still seems to come from the inherited blueprint. The result is:

image

The most flexible solution for me would be if I could somehow just override everything that comes below a specific attribute respectively stop inheritance there.

Maybe this is already possible or there is another way to solve my issue but I couldn't find anything in the docs.

@rhukster
Copy link
Member

rhukster commented Mar 6, 2016

This is actually coming as part of our major blueprint rafactor:https://github.com/getgrav/grav/tree/feature/blueprints-update

Hopefully we'll get this merged into develop this week. Thanks!

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

No branches or pull requests

3 participants