WonderCMS/wondercms

database.js: Page visibility indicator

joho1968 opened this issue · 2 comments

Looking at "menuItems" and "menuItems > subpages", I see there's "visibility". But looking at "pages" and "pages > subpages", there's no such setting. So I'm guessing this means I first have to traverse the "menuItems" and "menuItems > subpages" to know if a given page is visible or not, if I need to figure that out for some reason. Is that correct? 🤔

It'd be nice if there was a "visibility" setting on each actual page node.

robiso commented

Yes, you are correct, this is possible by checking the menuItems themself.
We don't have visibility per page, as the visibility does not affect the visibility of the page. The visibility in menu items declares whether the page is visible in the menu or not (there are no "hidden" pages, and anyone can access those pages, even if their visibility is set to "invisible/hidden" :)

OK. I think the possibility to hide a page may make sense, for example to "disable a page" temporarily instead of deleting it.