Getting Attribute of blocks

Permalink
Hi,
I have a fixed block on each of my news pages, which has the operational entity and the date of the news. I also have to display these two attributes on my customized page list. Therefore I was looking for a way to access attributes of a pages' blocks.

here it comes:
$blocks = $cobj->getBlocks();
foreach($blocks as $block) {
  if ($block->btHandle == 'news_header') {
     $instance = $block->instance;
     echo $instance->operational_entity.'|'.$instance->news_date;
     break;
  }
}

msglueck