Media

Entries can have any number and kind of images, videos, documents or other files.
Those files are being stored directly in the entry folder.

Getting list of images for entry in your template

<?php $images = Filesystem::getFilesList(PATH['entries'] . '/portfolio', 'jpg') ?>

Displaying images

<?php foreach($images as $image): ?>
    <img src="<?= $entry['base_url'] . '/portfolio/' . basename($image); ?>" />
<?php endforeach ?>