Skip to content

Kirby 4.4.1

$site->hasDocuments()

Checks if the Files collection has any document files

$site->hasDocuments(): bool

Return type

bool

Parent class

Kirby\Cms\Site

Example

<?php if($site->hasDocuments()): ?>
The /content folder contains documents.
<?php endif ?>