Hi
I'm trying to create a content-tree. I've figured out how to use
afterNavLinks
and want to do something like the attached image.
How do I get the pages when i'm in the state of the
afterNavLinks
component? 🙂
Hi @Kvist you could use the local API like this:
const pages = await payload.find({
collection: "pages",
});
Star
Discord
online
Get dedicated engineering support directly from the Payload team.