$page->hasDocuments()
Checks if the Files collection has any document files
Return type
bool
Parent class
Example
What is a document file?
Kirby considers the following file types as document:
- text
- mdown
- md
- markdown
- doc
- docx
- dotx
- word
- xl
- xls
- xlsx
- xltx
- ppt
- pptx
- csv
- rtf
- rtx