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

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

Open
emcarru opened this issue May 7, 2018 · 0 comments
Open

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

emcarru opened this issue May 7, 2018 · 0 comments
Labels

Comments

@emcarru
Copy link
Contributor

emcarru commented May 7, 2018

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"
      }
    ]
  ]
}
@dgrdl dgrdl added the feature label May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants