Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo $this->getLayout()->createBlock('cms/block')->setBlockId("$categoryBlock")->toHtml();
- public function getCmsBlockHtml()
- {
- if (!$this->getData('cms_block_html')) {
- $html = $this->getLayout()->createBlock(
- 'MagentoCmsBlockBlock'
- )->setBlockId(
- $this->getCurrentCategory()->getLandingPage()
- )->setCacheLifetime(null)->toHtml();
- $this->setData('cms_block_html', $html);
- }
- return $this->getData('cms_block_html');
- }
Add Comment
Please, Sign In to add comment