$db = Loader::db(); $nav = Loader::helper('navigation'); $query = "SELECT * FROM btReviewsEntries ORDER BY entryID DESC LIMIT 5"; $recent_reviews = $db->getAll($query); foreach($recent_reviews as $rev) { echo $rev['comment_text']; // comment text, probably want to trim it echo $nav->getLinkToCollection(Page::getByID($rev['cID'])); // link to the page }
I think that would be the challenging part, since (as currently written) the controller just pulls reviews from the current block. Printing out just 5 recent reviews could be done with a custom template-- that would be the easy part. So it may be possible with some custom development, but how much depends on exactly how complex a solution you need.