protected function _prepareLayout() { parent::_prepareLayout(); if ($toolbar = $this->getLayout()->getBlock('product_review_list.toolbar')) { $toolbar->setCollection($this->getReviewsCollection()); $this->setChild('toolbar', $toolbar); } return $this; }
protected function _prepareLayout() { parent::_prepareLayout(); $headBlock = $this->getLayout()->getBlock('head'); $product = Mage::getModel('catalog/product')->load($this->getProductId()); $title = $product->getName(); if ($title) { $headBlock->setTitle($title . " - Write a review now at Sample Store."); } if ($toolbar = $this->getLayout()->getBlock('product_review_list.toolbar')) { $toolbar->setCollection($this->getReviewsCollection()); $this->setChild('toolbar', $toolbar); } return $this; }