By Mike Szyszka on Saturday, 02 August 2014
Posted in Technical Issues
Likes 0
Views 738
Votes 0
I'm trying to figure out how I can add the blog image to the prev and next buttons. Is this even possible to do? Thanks for your help.
Hello Mike,

I am really sorry for the delay of this reply as it is a weekend for us here. I am really sorry but unfortunately that wouldn't be possible currently You can however, customize the theme file blog.read.navigation.php and add the codes below to get the blog image,


<?php
$previousBlog = EasyBlogHelper::getTable('Blog');
$previousBlog->load($prevLink['id']);

if ($previousBlog->getImage()){
echo "<img src='" . $previousBlog->getImage()->getSource('entry') . "' />";
}
?>


The example above is to retrieve the previous link's image. You can add similar codes for the next link.
·
Saturday, 02 August 2014 17:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you so much for the help. That worked beautifully!
·
Sunday, 03 August 2014 03:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Mike, glad that your issues are resolved now
·
Sunday, 03 August 2014 22:42
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post