Remove unpublished pages from Page list in the Menu

default discord avatar
6 months ago

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
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.