SEO-plugin: How do I show the custom fields in the Payload UI? #11403
Unanswered
bjornendreafv
asked this question in
Q&A
Replies: 1 comment
-
I noticed adding the field to the collection like this worked and I get a meta_custom_canonical field in the DB. { -- |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've added a new field to the SEO-plugin through
seoPlugin({ generateTitle, generateDescription, generateURL, fields: ({ defaultFields }) => [ ...defaultFields, { name: 'customCanonical', type: 'text', } ] })
but I'm not sure how I am able to show it in the Payload admin also. In my collection I specify the fields via
MetaTitleField({ hasGenerateFn: true, }), MetaImageField({ relationTo: 'media', }), MetaDescriptionField({ hasGenerateFn: true, })
but how do I also add them to the UI? Is it even possible. The documentation is slightly unclear as it talks about using the custom fields for og:title or json-ld. I know I can create a regular field on the collection but I thought I could use the custom field so it appears on all collections.
Beta Was this translation helpful? Give feedback.
All reactions