Skip to content
This repository was archived by the owner on Apr 30, 2020. It is now read-only.
This repository was archived by the owner on Apr 30, 2020. It is now read-only.

Feature request: loading fields from one field group into another #274

@emcarru

Description

@emcarru

I wanted to share some generic options across field groups and expected I would be able to do this, since it's possible already across components, features, and post types. Unfortunately, it doesn't look like this is possible yet?

Example:

In config/fieldGroups/pageOptions.json

{
  "name": "pageOptions",
  "title": "Page Options",
  "fields": [
    {
      "name": "specialPageOption",
      "label": "Special Page Option",
      "type": "true_false",
      "default_value": false,
      "ui": true
    },
    {
      "name": "moreOptions",
      "label": "Some more options...",
      "type": "text"
    }
  ],
  "location": [
    [
      {
        "param": "post_type",
        "operator": "==",
        "value": "page"
      }
    ]
  ]
}

In config/fieldGroups/postOptions.json, I would want to do this:

{
  "name": "postOptions",
  "title": "Post Options",
  "fields": [
    {
      "name": "customPostOption",
      "label": "Custom Post Option",
      "type": "text"
    }
    "Flynt/FieldGroups/PageOptions/Fields"
  ],
  "location": [
    [
      {
        "param": "post_type",
        "operator": "==",
        "value": "post"
      }
    ]
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions