Wednesday 2 April 2014

How to set the page title, meta description and keywords from the Block / phtml template in magento?


$head = $this->getLayout()->getBlock('head');
       $head->setTitle($title);
       $head->setKeywords($keywords);
       $head->setDescription($description);

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home