Adding images to Next and Previous Block

Permalink
I'm using the next and previous block at the bottom of the blog pages to allows users to quickly move to other blogs. I want to add the corresponding thumbnail images from the thumbnail attribute to the next and previous block.

I know the best way to start is use a template override file. But after that I'm a little lost.

stewblack23
 
JohntheFish replied on at Permalink Reply
JohntheFish
The controller passes the page objects for next & prev to the view
$this->set('nextCollection', $nextCollection);
$this->set('nextLinkURL', $nextLinkURL);
$this->set('nextLinkText', $nextLinkText);
$this->set('nextLabel', $this->nextLabel);


With $nextCollection you would do something like
https://github.com/shahroq/whale_c5_cheat_sheet/blob/master/README.m...
stewblack23 replied on at Permalink Reply
stewblack23
Hey John

Thanks. This is helpful. I figured that I was going to have to do a foreach loop to retrieve all of the thumbnail attributes. I will work on this later and see if I can get it working.