#Override breadcrumbs

13 messages · Page 1 of 1 (latest)

upper briar
#

Is there a way to hide or move the breadcrumbs field from nested docs?

clear raptorBOT
upper briar
#

When i use createBreadcrumbsField it doesnt generate the data.

upper briar
#

Does anyone know a way?

icy talon
#

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}, ''), }),

upper briar
icy talon
#

You can pass admin: { hidden: true }

#

To the field you import in your page config

#

createBreadcrumbsField('pages', { admin: { hidden: true, }, }),

upper briar
icy talon
#

Do you have the function imported in 2 places?

#

And maybe, what version are you on? ( Payload )

upper briar
#

Now it works, thank you so much!