diff --git a/packages/core/cms/faststore/content-types.json b/packages/core/cms/faststore/content-types.json index 6cde2eaf33..bf2436eac0 100644 --- a/packages/core/cms/faststore/content-types.json +++ b/packages/core/cms/faststore/content-types.json @@ -91,6 +91,15 @@ "canonical": { "title": "Canonical url for the page", "type": "string" + }, + "name": { + "title": "Name", + "type": "string" + }, + "publisherId": { + "title": "Publisher ID", + "description": "Uses to identifier to reference the publisher. E.g.: #website", + "type": "string" } } } diff --git a/packages/core/discovery.config.default.js b/packages/core/discovery.config.default.js index 9a7d1e0d31..0969dde262 100644 --- a/packages/core/discovery.config.default.js +++ b/packages/core/discovery.config.default.js @@ -4,6 +4,8 @@ module.exports = { description: 'Fast Demo Store', titleTemplate: '%s | FastStore', author: 'Store Framework', + name: 'FastStore', + publisherId: '', plp: { titleTemplate: '%s | FastStore PLP', descriptionTemplate: '%s products on FastStore Product Listing Page', diff --git a/packages/core/src/pages/index.tsx b/packages/core/src/pages/index.tsx index 7199991625..f1d178eb37 100644 --- a/packages/core/src/pages/index.tsx +++ b/packages/core/src/pages/index.tsx @@ -30,6 +30,8 @@ function Page({ data: serverData, } + const publisherId = settings?.seo?.publisherId ?? storeConfig.seo.publisherId + return ( <> {/* SEO */} @@ -47,6 +49,8 @@ function Page({ }} /> {/* diff --git a/packages/core/src/server/cms/index.ts b/packages/core/src/server/cms/index.ts index 34ea3f3401..10a1c1ea30 100644 --- a/packages/core/src/server/cms/index.ts +++ b/packages/core/src/server/cms/index.ts @@ -30,6 +30,8 @@ export type PageContentType = ContentData & { title: string description: string canonical?: string + name?: string + publisherId?: string } } }