A plugin that provides implementation of static pages for your Medusa store. You can use this plugin for creating static pages like FAQ, Policy etc. quite easily for your store.
If you are not familiar with Medusa, you can learn more on the project web site.
A plugin that provides implementation of static pages for your Medusa store. You can use this plugin for creating static pages like FAQ, Policy etc. quite easily for your store.
yarn add medusa-plugin-static-pages
or
npm i medusa-plugin-static-pages
medusa-config.js
, add the plugin to the plugins
array and set
enableUI
const plugins = [
// ... other plugins
{
resolve: `medusa-plugin-static-pages`,
options: {
enableUI: true
}
}
]
npx medusa migrations run
(see: https://docs.medusajs.com/development/entities/migrations/overview)
as the plugin uses new tables.GET /store/pages
GET /store/page/:handle
GET /store/page/:id
POST /admin/page
handle
: (Required) The handle for the page.title
: (Required) The title of the page.metadata
: (Optional) Additional metadata for the page.body
: (Optional) The content of the page.POST /admin/page/:id
handle
: (Required) The updated handle for the page.title
: (Required) The updated title of the page.metadata
: (Optional) Updated metadata for the page.body
: (Optional) The updated content of the page.DELETE /admin/page/:id
page: {
"id": "string",
"handle": "string",
"title": "string",
"metadata": "string",
"body": "string",
"created_at": "DateTime",
"updated_at": "DateTime"
}
If you have an idea for what could be the next highest priority functionality, do not hesitate to raise an issue here: Github issues.
MIT