$site->hasDocuments()
Checks if there are any documents (pdf, doc, xls, etc.) placed directly in /content
-
return (boolean)
Example
<?php if($site->hasDocuments()): ?>
The /content folder contains documents.
<?php endif ?>
Checks if there are any documents (pdf, doc, xls, etc.) placed directly in /content
<?php if($site->hasDocuments()): ?>
The /content folder contains documents.
<?php endif ?>