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

XH\Publisher->isHidden() vs. hide() #353

Open
cmb69 opened this issue Jan 13, 2018 · 0 comments
Open

XH\Publisher->isHidden() vs. hide() #353

cmb69 opened this issue Jan 13, 2018 · 0 comments

Comments

@cmb69
Copy link
Member

cmb69 commented Jan 13, 2018

XH\Publisher->isHidden() is supposed to return whether a given page is hidden. It does, however, not cater to pages which are hidden by plugins (e.g. by $c[$n] = '#cmsimple hide#';), because the visibility of the pages is cached before the plugins are run. What it basically does right, though, is to treat subpages of hidden pages as hidden.

Contrast that with hide(). This function returns the current visibility; so at least if it's called late, it caters to plugins which hide pages. However, it does not respect subpages of hidden pages.

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

1 participant