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

  • #2538
    Avatar photo[anonymous]

    Split the Other Options of a post configs in blocks/tabs, like the Custom Configs in Themes tab.

    #2630
    Avatar photo[anonymous]

    Hi,

    Can you clarify if I correctly understand – do you suggest to split “Other options” to two sections “Post options” (for the post options only) and “Custom options” (for custom options added by theme/future plugins)?

    #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.

    #2644
    Avatar photo[anonymous]

    This is one my theme config