collections | CollectionSlug[] | Required | Collections to extend. Add the plugin more than once to use different options for different collections. |
parentFieldSlug | string | 'parent' | Name of the parent relationship field. When set, the plugin doesn’t add the field, so define it yourself. |
breadcrumbsFieldSlug | string | 'breadcrumbs' | Name of the breadcrumbs array field. When set, the plugin doesn’t add the field, so define it yourself. |
generateLabel | (docs, currentDoc, collection, req) => string | The document’s useAsTitle value | Returns the label for each breadcrumb. docs is the chain from the root ancestor to that breadcrumb’s document, and currentDoc is the last item in it. |
generateURL | (docs, currentDoc, collection, req) => string | — | Returns the URL for each breadcrumb, with the same arguments. Without it, breadcrumbs have no URL. |