Move findPageBreadcrumb
utility from @nuxt/ui-pro
to @nuxt/content
and add findPageChildren
/ findPageSiblings
#3313
Labels
enhancement
New feature or request
I’d like to propose moving the
[findPageBreadcrumb](https://ui.nuxt.com/getting-started/content#findpagebreadcrumb)
function, currently implemented in@nuxt/ui-pro
to the@nuxt/content
module. Since it relies solely on content data, it could be useful beyond Nuxt UI and benefit a broader range of projects using Nuxt Content.Following a conversation with @atinux in DMs, he mentioned this move could indeed make sense and be worth considering within the scope of
@nuxt/content
.In addition, I’d like to propose the creation of two complementary utilities:
findPageChildren
findPageSiblings
🧠 Proposal
1. Generic utilities
All three functions (
findPageBreadcrumb
,findPageChildren
, andfindPageSiblings
) could:/foo/bar
) rather than a full page object.strategy
parameter to control howindex.md
files are interpreted.2. Strategy behavior
The
strategy
option would define whether anindex.md
file should be:index-as-child
, current behavior)index-as-root
)It would also be convenient to define this behavior globally through the module configuration, e.g.:
📎 Context
Related PRs in
@nuxt/ui-pro
:The text was updated successfully, but these errors were encountered: