Like what we’re doing? Star us on GitHub!

Remove unpublished pages from Page list in the Menu

last week

I need to filter the pagelist, which has list of pages that are only published! If the page is saved as a draft, I do not want that page to be in the page list.

Is this possible?

As far as I understand, the page list is rendered based on the

Page Slug

from which I cannot figure out to filter the pages

Open the post
Continue the discussion in Discord
Can't find what you're looking for?
Get help straight from the Payload team with an Enterprise License.Learn More