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

overriding parent _hidden field in content does not have desired effect #203

Closed
krosaen opened this issue Apr 20, 2016 · 1 comment · Fixed by #1048
Closed

overriding parent _hidden field in content does not have desired effect #203

krosaen opened this issue Apr 20, 2016 · 1 comment · Fixed by #1048

Comments

@krosaen
Copy link

krosaen commented Apr 20, 2016

Per docs here on the _hidden system field:

This also automatically applies to all children of a page unless they forcefully override this setting.

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.

@photong
Copy link

photong commented Mar 21, 2022

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.

dairiki added a commit to dairiki/lektor that referenced this issue Jul 22, 2022
Even though hidden records produce no artifacts, they may have
non-hidden children.

See lektor#203
dairiki added a commit to dairiki/lektor that referenced this issue Jul 22, 2022
Even though hidden records produce no artifacts, they may have
non-hidden children.

See lektor#203
dairiki added a commit to dairiki/lektor that referenced this issue Jul 27, 2022
Even though hidden records produce no artifacts, they may have
non-hidden children.

See lektor#203
dairiki added a commit that referenced this issue Aug 2, 2022
Fixes for #203: visible children of hidden parents
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

Successfully merging a pull request may close this issue.

2 participants