Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database.js: Page visibility indicator #301

Open
joho1968 opened this issue Jul 10, 2023 · 2 comments
Open

database.js: Page visibility indicator #301

joho1968 opened this issue Jul 10, 2023 · 2 comments

Comments

@joho1968
Copy link

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
Copy link
Collaborator

robiso commented Nov 1, 2023

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

@joho1968
Copy link
Author

joho1968 commented Nov 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants