I’m trying to modify the project.php file in the default Kirby 2.3 template. The following works…
<?php echo $page->text()->kirbytext() ?>
<?php foreach($page->images()->sortBy('sort', 'asc') as $image): ?>
<figure>
<img src="<?php echo $image->url() ?>" alt="<?php echo $page->title()->html() ?>">
</figure>
<?php endforeach ?>
But when I try to make it output thumbs as per the line below instead it does the exact same thing … checking page source, the exact same file is being output in the html source, with no restriction of width or anything. Any thoughts?
<img src="<?= thumb($image, array('width' => 400))->url() ?>" alt="<?php echo $page->title()->html() ?>">