$page->files()
Returns a $files collection with all files in the page's directory
-
return ($files)
Example
<h2>Files</h2>
<ul>
<?php foreach($page->files() as $file): ?>
<li>
<a href="<?= $file->url() ?>">
<?= $file->filename() ?>
(<?= $file->niceSize() ?>)
</a>
</li>
<?php endforeach ?>
</ul>