$site->index()
Creates a flat child index
Parameters
Name | Type | Default | Description |
---|---|---|---|
$drafts | bool |
false |
If set to true , draft children are included |
Return type
Parent class
Details
$site->index()
reads the entire folder structure including all files. Especially on large sites with many files, using $site->index()
can result in big performance issues, so use with caution.