diff --git a/docs/api/db/system-fields/hidden/index.html b/docs/api/db/system-fields/hidden/index.html index 9232c742..36d7865c 100644 --- a/docs/api/db/system-fields/hidden/index.html +++ b/docs/api/db/system-fields/hidden/index.html @@ -215,10 +215,14 @@
This field controls if Lektor should process the page into a build artifact.
-By default each page is built into a build artifact (HTML page) and each
-attachment is processed. This can be prevented by setting _hidden
to yes
.
This also automatically applies to all children of a page unless they -forcefully override this setting.
+By default, each page is built into a build artifact (HTML page) and each +attachment is copied to the output directory. +This can be prevented for a particular page or attachment by setting its_hidden
to yes
.
+If an explicit value for the _hidden
field is not set,the value of the hidden
option in the
+child configuration — or, for attachments, attachment configuration — section
+of the parent's datamodel is checked.
+If that, too, is not set, then pages, but not attachments, inherit the hidden status of their parent —
+that is, by default, children of hidden pages will not be built, though attachments of hidden pages will.
This is useful for more advanced setups like Single Page Applications.
Hidden pages are automatically also removed from the .children
property
of records but stay available for querying via the pad.
model
: an optional default model that is used for all attachments.order_by
: controls the ordering of attachments, similar to how this
works for child pages.hidden
: if this is set it can override the hidden flag for all
-attachments at once. The default as of Lektor 2 is that attachments are
-not hidden by default.hidden
: if this is set, attachments will not be built.
+ (Note that any setting here may be overridden on a per attachment basis by
+ setting that attachment's _hidden
field.)The hidden
flag was added in Lektor 2.0 and the default was changed so
that attachments are not hidden by default, even if the parent is.
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._hidden
field will
+override any value set here.)
The hidden
flag was added in Lektor 2.0
Slugs are the URL paths or more correctly: parts of it. The URL paths always are the concatenation from the parent's page URL path plus the diff --git a/index.html b/index.html index 649c9ac2..35a9f88d 100644 --- a/index.html +++ b/index.html @@ -151,7 +151,7 @@ speak multiple languages and allow you to easily create localized websites.