I insert the static cms block through the widget instance - and I would like to output the title of the static block, as well as its contents, from my widget template. The default template (app / design / frontend / base / default / template / cms / widget / static_block / default.phtml) simply has:
<?php echo $this->getText(); ?>
I changed this to getData () to see what could capture that the following:
[type] => cms/widget_block [block_id] => 11 [module_name] => Mage_Cms [text] => blahblahblah
So, I guess the only way is to use block_id to get the header, but I can't figure out how to do this. I can grab the block_id from there using $ this-> getBlockId (), but how can I use this to get the header?
I thought the following might work, but it is not:
$blockid = $this->getBlockId(); $blocktitle = Mage::getModel('cms/page')->load($blockid, 'block_id')->getTitle();
Marlon creative
source share