Creates a new flatten module with the specified key for child documents.
Specify
null to flatten all descendant documents regardless of key.
- Namespace
- Statiq
.Core - Containing Type
- FlattenTree
Syntax
public FlattenTree(bool removeTreePlaceholders, string childrenKey)
Parameters
| Name | Type | Description |
|---|---|---|
| removeTreePlaceholders | bool | true to filter out documents with the TreePlaceholder metadata. |
| childrenKey | string | The metadata key that contains the children or null to flatten all documents. |