Page List + show a block

Permalink
I'm looking to create a page list that not only shows the title of the page, but also shows a block (or content from a block)

What I'm doing is trying to give a rating to each page, then I'd like to sort by that rating. If I couldn't sort by the rating, then at least would like to show the rating (in which would be a block)...

Anyone done anything like this? Did I miss an add-on in the marketplace that would allow this? i.e. a super sort with page preview module.

When I search - it's close to what I'm looking for, but would like it to pull a different block than what it defaults to. Also - I only know of how to actually display results when hard coding a search result? Tough thing is - I know exactly how to do this in Drupal. I think I'm trying to do this from a Drupal prospective, and not seeing the obvious answer.

thephilm
 
okhayat replied on at Permalink Reply
okhayat
I guess a template for Page List should do the job. Something like:
<? if (count($cArray) > 0) { ?>
<div class="ccm-page-list">
  <?
  for ($i = 0; $i < count($cArray); $i++ ) {
    $cobj = $cArray[$i];
    $title = $cobj->getCollectionName();
    $blocks = $cobj->getBlocks('main');
  ?>
  <h3 class="ccm-page-list-title">
    <a href="<?=$nh->getLinkToCollection($cobj)?>"><?=$title?></a>
  </h3>
  <div class="ccm-page-list-description">
  <?
    foreach ($blocks as $bl) {
      if ($bl->btHandle == 'rating') {

which will read the Main read, loop through the blocks looking for 'rating' block. Not sure how to render it though, just give it a shot though.