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(string treePlaceholderKey, string childrenKey)
Parameters
| Name | Type | Description |
|---|---|---|
| treePlaceholderKey | string |
The metadata key that identifies placeholder documents (TreePlaceholder by default).
If null, tree placeholders will not be removed.
|
| childrenKey | string | The metadata key that contains the children or null to flatten all documents. |