We have a custom nav builder that relies on a separate model that has custom nav records that rely on linking to the pages that are to be included in that specific nav.
When trying to create the nav before the pages in the nav are published (which would not be a problem, as the nav doesnât go live without being contained on pages), we canât publish it because it links to draft pages.
We then link back to the nav in the pages in question because it needs to show on the page, but we canât publish the page because the nav isnât published yet.
What I would like to do is be able to publish a nav and ignore the published status of the linked records, then batch-publish the pages in question.
Our workaround for now is to create a nav and publish it immediately without any links. This gives us our base logo + CTA nav. We can then publish the pages we will link to, and then link to them. The pages just end up being live temporarily without the nav links.
The records arenât actually ready to be published yet. Weâre just trying to get the nav ready for when they are.
I guess maybe we could leave the nav unpublished and then have that setting on the individual pages, but will that get stuck because the pages arenât actually published yet, so then it gets caught in a loop?
The basic issue is that the parent (nav) cannot be published if any child (page) is never-published/draft.
You can save everything as a draft and then later publish them all at once via the validation setting on the parent nav.
Or you can publish the nav without any links at first (just to have it up), and then add in the pages and save it as as updated, then publish later.
But yeah, the other thread and this one has the same underlying system limitation: You canât publish a parent linking to draft children.
The workaround there (use a JSON field as a fake link field) is the simplest workaround if you must have that behavior, until weâre able to add it natively.