Changing thumbnail size in Page List block on 8.1

Permalink
Hello,

Could someone please help me understand how to change the thumbnail size in the Page List block on 8.1? The code I used for older versions does not work.

I have added the thumbnail attribute and it is displaying correctly in my page list.

These are the helpers that are called:
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$th = Loader::helper('text');
$c = Page::getCurrentPage();
$dh = Core::make('helper/date'); /* @var $dh \Concrete\Core\Localization\Service\Date */
?>


$thumbnail = false;
    if ($displayThumbnail) {
        $thumbnail = $page->getAttribute('thumbnail');
    }


And when it's called:
<div class="ccm-block-page-list-page-entry-thumbnail">
              <a href="<?php echo $url?>" target="<?php echo $target?>">
                <?php
                $img = Core::make('html/image', array($thumbnail));
                $tag = $img->getTag();
                $tag->addClass('img-responsive');
                echo $tag;
                ?>
              </a>
</div>


Thank you

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi wilfordbrimley,

The code you are using creates a responsive picture element that will display a different thumbnail image size based on the screen width of the page (https://responsiveimages.org).
- The size of the thumbnails are set in the Thumbnails section of the dashboard.
Dashboard > System & Settings > Files > Thumbnails
- The screen widths used in the picture element are set in your theme page_theme.php getThemeResponsiveImageMap() method.
- The display size of thumbnails is set in one or more places. The width will be set in the Page List block view.css file and the height will be set in your theme CSS and/or the img-responsive class (setting the height to auto).