Show posts from a category magento AW BLog
Posted by navaneeth on Mar 4, 2014 in Magento | 3 Comments
When using the AheadWorks Blog Magento Extensions sometimes necessary show blog category from block or cms page. Need to make small changes before use code
{{block type="blog/cat" categories="1" template="aw_blog/cat.phtml"}}
Go to app/code/community/AW/Blog/Block/Cat.php and change
public function getCategory() { $cats = Mage::getSingleton('blog/cat'); return $cats; }
to
public function getCategory() { $cats = Mage::getSingleton('blog/cat'); $cats = Mage::getSingleton('blog/cat'); $_id = ($this->getData('categories')) ? $this->getData('categories') : false; if (!empty($_id)) { $cats->load($_id); } return $cats; }
3 Comments on “Show posts from a category magento AW BLog”
klaus
August 6, 2014Thank you very much! From South Africa
priya kumar
October 26, 2015its useful
suman
November 28, 2015i want to know to to listed category wise product in custom template