penguin-object-save

1.0.2 • Public • Published

penguin save-button

On the object page, use this component instead of the normal save button.

This makes it possible to access data from an object on another website. E.g. useful to show a list with all blog items.

Example usage

a.cms-btn.btn-save(data-component='SaveButton' data-props={
  field: "nameOfAGlobalField",
  keys: ["image", "name", "content", "url", "type", "startdate", "enddate"]
})

Donot forget to adjust your package.json:

{
  "penguin": {
    "globals": [
      "nameOfAGlobalField"
    ]
  }
}

Package Sidebar

Install

npm i penguin-object-save

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • pa1nd