Replies: 1 comment
-
|
The main issue I see is that the plugin has only a single configuration for all collections, like this: plugins: [
nestedDocsPlugin({
collections: ['pages', 'categories', 'products', 'brands'],
generateLabel: (_, doc) => String(doc.title),
generateURL: (docs) =>
docs.reduce((url, doc) => `${url}/${String(doc.slug)}`, ''),
}),
],But there are many cases when we need a different configuration per collection. Is there a way to achieve this? |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Could anyone share an example of how to use the Nested Docs Plugin for multiple collections? For example, the Categories and Products collection, where categories are nested, and the product should have the path like
/category-slug/sub-caregory-slug/product-slug?And a more complex challenge:
/catalog-main-page-slug/category-slug/sub-caregory-slug/brand-slug/product-slugBeta Was this translation helpful? Give feedback.
All reactions