Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'

This commit is contained in:
Bjørn Erik Pedersen
2025-04-10 13:04:51 +02:00
987 changed files with 12379 additions and 14083 deletions

View File

@@ -3,15 +3,13 @@ title: RegularPagesRecursive
description: Returns a collection of regular pages within the current section, and regular pages within all descendant sections.
categories: []
keywords: []
action:
related:
- methods/page/Pages
- methods/page/RegularPages
returnType: page.Pages
signatures: [PAGE.RegularPagesRecursive]
params:
functions_and_methods:
returnType: page.Pages
signatures: [PAGE.RegularPagesRecursive]
---
The `RegularPagesRecursive` method on a `Page` object is available to these [page kinds](g): `home`, `section`, `taxonomy`, and `term`. The templates for these page kinds receive a page [collection](g) in [context](g).
The `RegularPagesRecursive` method on a `Page` object is available to these [page kinds](g): `home`, `section`, `taxonomy`, and `term`. The templates for these page kinds receive a page [collection](g) in [context](g), in the [default sort order](g).
Range through the page collection in your template:
@@ -81,6 +79,5 @@ When rendering lesson-2, the `RegularPagesRecursive` method returns:
lessons/lesson-2/resources/task-list.md
lessons/lesson-2/resources/worksheet.md
{{% note %}}
The `RegularPagesRecursive` method in not available on a `Site` object.
{{% /note %}}
> [!note]
> The `RegularPagesRecursive` method is not available on a `Site` object.