For context: when creating a new nav item in the Header for example, it is displayed as "Nav Item 01" when you navigate to the Header in the admin panel. How can I update this value before it gets saved? I'm guessing there is a hook available, but I'm not sure what this property would be called. Thank you.
This is a custom component located in your website template at the Header/RowLabel.tsx component
Thank you!
My pleasure
Sorry, one more thing. If the nav item has a category, right now the categories array that gets returned in this RowLabel component is just an array of numbers. Is there a reliable way of populating/retrieving this data so the category can be displayed in the label as well?
For sure - you want to use the Payload local api to fetch these
It's an array of IDs
A
payloadinstance is passed to your RSC there
Awesome! Thanks so much
My pleasure!
Star
Discord
online
Get dedicated engineering support directly from the Payload team.