cms-json icon indicating copy to clipboard operation
cms-json copied to clipboard

Define a field as a complex object

Open amelki opened this issue 7 years ago • 0 comments

Currently, a field can only have a primitive type (string, string[], boolean). It should be possible to define some sub-objects and arrays of sub-objects and use them as field types eg:

{
  pages: [
    home: {
      title: "Home Page",
      seo: {
        keywords: ["foo", "bar", "hux"],
        canonicalUrl: "http://acme.com/home"
      }
    }
  ]
}

amelki avatar Dec 23 '17 21:12 amelki