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
overriding parent _hidden field in content does not have desired effect #203
Comments
I have the same problem. The docs state that for child configuration: hidden: if this is set it can override the parent's hidden flag for all children. This is particularly useful if you want to have a folder for error pages or other special pages where the parent itself should not be rendered but all children are. The default is not set. In the "Categories" guide (https://www.getlektor.com/docs/guides/categories/), if "project-categories/contents.lr" has "_hidden: yes", then children give 404 even though they are not hidden (e.g., children] hidden = no"). There seems to be no way to have a hidden parent and rendered children. |
Even though hidden records produce no artifacts, they may have non-hidden children. See lektor#203
Even though hidden records produce no artifacts, they may have non-hidden children. See lektor#203
Even though hidden records produce no artifacts, they may have non-hidden children. See lektor#203
Fixes for #203: visible children of hidden parents
Per docs here on the
_hidden
system field:I'm trying to use this in a website to expose urls like:
/podcasts/pistons/3
while having a 404 for
/podcasts/
Here's a branch illustrating:
https://github.com/krosaen/brosaen-lektor/compare/unhidden-content-children?expand=1
note I'm hiding
/podcasts/
and attempting to unhide/podcasts/pistons/
. Should this be possible? Not sure if this is a bug or a feature request / misunderstanding of the docs.The text was updated successfully, but these errors were encountered: