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
|
||||
|
||||
- [Payload] Fix SDK endpoint not working in prod
|
||||
- [Folder] Add parent pages
|
||||
- Add hover/active styling for settings options in topbar + language override
|
||||
- Highlight currently selected language option in language override tooltip
|
||||
- Save cookies for longer than just the session
|
||||
|
@ -28,6 +27,7 @@
|
|||
- Contact page
|
||||
- About us page
|
||||
- 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
|
||||
- Anonymous comments
|
||||
|
||||
|
|
|
@ -28,7 +28,8 @@ const meta = getLocalizedMatch(folder.translations);
|
|||
openGraph={{
|
||||
title: meta.name,
|
||||
description: meta.description && formatRichTextToString(meta.description),
|
||||
}}>
|
||||
}}
|
||||
parentPages={folder.parentPages}>
|
||||
{
|
||||
meta.description && (
|
||||
<div slot="header-description">
|
||||
|
|
|
@ -290,6 +290,7 @@ export interface Folder {
|
|||
id: string;
|
||||
slug: string;
|
||||
icon?: string | null;
|
||||
parentFolders?: (string | Folder)[] | null;
|
||||
translations: {
|
||||
language: string | Language;
|
||||
name: string;
|
||||
|
@ -1276,6 +1277,7 @@ export type EndpointFolder = EndpointFolderPreview & {
|
|||
value: EndpointPagePreview;
|
||||
}
|
||||
)[];
|
||||
parentPages: ParentPage[];
|
||||
};
|
||||
|
||||
export type EndpointHomeFolder = EndpointFolderPreview & {
|
||||
|
@ -1353,7 +1355,6 @@ export type ParentPage = {
|
|||
slug: string;
|
||||
collection: Collections;
|
||||
translations: { language: string; name: string }[];
|
||||
tag: string;
|
||||
};
|
||||
|
||||
export type EndpointCollectiblePreview = {
|
||||
|
|
Loading…
Reference in New Issue