Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Split other options in post editor

#2643
Avatar photo[anonymous]

My suggestion would be something like this:

"postConfig": [...], //renders to actual group: Other options
"additionalConfig": [{
  //renders to a new group, in this case: Source
  "name": "sourceUrl",
  "label": "Source URL",
  "group": "Source",
  "type": "text"
}, {
  //renders to a new group, in this case: Store
  "name": "storeLocation",
  "label": "Store Location",
  "group": "Store",
  "type": "text"
}]

or something like this:

"postConfig": [...], //renders to actual group: Other options
"additionalConfig": [{
  //renders to a new group, in this case: Source
  "label": "Source",
  "icon": "link",
  "fields": [{
    "name": "sourceUrl",
    "label": "Source URL",
    "type": "text"
  }]
}, {
  //renders to a new group, in this case: Store
  "label": "Store",
  "icon": "market",
  "fields": [{
    "name": "storeLocation",
    "label": "Store Location",
    "type": "text"
  }]
}]

Just to split some important template config, in order to don’t have a gigant “Other options” section, that’s my case right now, I’m splitting with separator type.