Support for parent pages on folders
This commit is contained in:
parent
6a8cb6f778
commit
751f1a85fd
2
TODO.md
2
TODO.md
|
@ -3,7 +3,6 @@
|
||||||
## Short term
|
## Short term
|
||||||
|
|
||||||
- [Payload] Fix SDK endpoint not working in prod
|
- [Payload] Fix SDK endpoint not working in prod
|
||||||
- [Folder] Add parent pages
|
|
||||||
- Add hover/active styling for settings options in topbar + language override
|
- Add hover/active styling for settings options in topbar + language override
|
||||||
- Highlight currently selected language option in language override tooltip
|
- Highlight currently selected language option in language override tooltip
|
||||||
- Save cookies for longer than just the session
|
- Save cookies for longer than just the session
|
||||||
|
@ -28,6 +27,7 @@
|
||||||
- Contact page
|
- Contact page
|
||||||
- About us page
|
- About us page
|
||||||
- Global search function
|
- Global search function
|
||||||
|
- Consider official search plugin for payload https://payloadcms.com/docs/plugins/search
|
||||||
- Convert Rich text to simple text for indexing and open graph purposes
|
- Convert Rich text to simple text for indexing and open graph purposes
|
||||||
- Anonymous comments
|
- Anonymous comments
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,8 @@ const meta = getLocalizedMatch(folder.translations);
|
||||||
openGraph={{
|
openGraph={{
|
||||||
title: meta.name,
|
title: meta.name,
|
||||||
description: meta.description && formatRichTextToString(meta.description),
|
description: meta.description && formatRichTextToString(meta.description),
|
||||||
}}>
|
}}
|
||||||
|
parentPages={folder.parentPages}>
|
||||||
{
|
{
|
||||||
meta.description && (
|
meta.description && (
|
||||||
<div slot="header-description">
|
<div slot="header-description">
|
||||||
|
|
|
@ -290,6 +290,7 @@ export interface Folder {
|
||||||
id: string;
|
id: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
icon?: string | null;
|
icon?: string | null;
|
||||||
|
parentFolders?: (string | Folder)[] | null;
|
||||||
translations: {
|
translations: {
|
||||||
language: string | Language;
|
language: string | Language;
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -1276,6 +1277,7 @@ export type EndpointFolder = EndpointFolderPreview & {
|
||||||
value: EndpointPagePreview;
|
value: EndpointPagePreview;
|
||||||
}
|
}
|
||||||
)[];
|
)[];
|
||||||
|
parentPages: ParentPage[];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EndpointHomeFolder = EndpointFolderPreview & {
|
export type EndpointHomeFolder = EndpointFolderPreview & {
|
||||||
|
@ -1353,7 +1355,6 @@ export type ParentPage = {
|
||||||
slug: string;
|
slug: string;
|
||||||
collection: Collections;
|
collection: Collections;
|
||||||
translations: { language: string; name: string }[];
|
translations: { language: string; name: string }[];
|
||||||
tag: string;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EndpointCollectiblePreview = {
|
export type EndpointCollectiblePreview = {
|
||||||
|
|
Loading…
Reference in New Issue