wondercms icon indicating copy to clipboard operation
wondercms copied to clipboard

database.js: Page visibility indicator

Open joho1968 opened this issue 1 year ago • 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? :thinking:

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

joho1968 avatar Jul 10 '23 14:07 joho1968

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" :)

robiso avatar Nov 01 '23 14:11 robiso

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

joho1968 avatar Nov 06 '23 08:11 joho1968