#Override breadcrumbs
13 messages · Page 1 of 1 (latest)
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
Documentation:
When i use createBreadcrumbsField it doesnt generate the data.
Does anyone know a way?
It generates the data when saved, also you need to have it configured in the plugins with the collection
nestedDocsPlugin({ collections: ['categories', 'pages'], generateURL: (docs) => docs.reduce((url, doc) => ${url}/${doc.slug}, ''), }),
But how do i then override it?
You can pass admin: { hidden: true }
To the field you import in your page config
createBreadcrumbsField('pages', { admin: { hidden: true, }, }),
When I try to use createBreadcrumbsField in a collection which is also in the nesteddocs config. It says that it already exists, and doesn’t work.
Do you have the function imported in 2 places?
And maybe, what version are you on? ( Payload )
Now it works, thank you so much!