H22 Solutions Ltd - Affordable Nottingham & East Midlands Freelance Web Design, Search Engine Optimisation, Brand Management, Email & Marketing, Print Management

Contact | Call now for a FREE Quotation 07899 842 073

Magento – AheadWorks Blog – Add blog posts to CMS pages

AW Blog is a Magento extension from aheadWorks that is reckoned among the best buzz and word of mouth marketing tips. It not only provides your regular customers with up-to-date information but brings additional visitors to your site, builds relevant SEO-friendly text links, and serves as assistance in building sales strategy.

The Blog extension gives you a noteworthy opportunity to communicate with your regular customers and casual visitors. With Blog you can create an interactive two-way communication platform to provide official information on your store news, upcoming products, promotions, and get customers’ feedback.

Plugin is available from

http://www.magentocommerce.com/magento-connect/aheadworks/extension/1516/blog-extension-by-aheadworks

Adding blog Post to multiple CMS pages

This mod will allow you to add blog posts from specific categories onto specific CMS pages.

/public_html/app/code/community/AW/Blog/Block/Blog.php

Change existing code to

class AW_Blog_Block_Blog extends Mage_Core_Block_Template
{
public function getPosts($catfilter)
{

if(!$catfilter) {
$catfilter = 1;
}

$tag = $this->getRequest()->getParam(‘tag’);

$collection = Mage::getModel(‘blog/blog’)->getCollection()
->addPresentFilter()
->addStoreFilter(Mage::app()->getStore()->getId())
->setOrder(‘created_time ‘, ‘desc’)
->addCatFilter($catfilter);

In /public_html/app/design/frontend/default/default/template/aw_blog copy blog.phtml to blog-cmspagename.phtml

In the new phtml file change the first few lines

getPosts(3); ?> // 3 is the blog category id



if ($i++ > $limit) break;

In the admin backend, goto CMS>Page>Your Page
In Content, Add

{{block type=”blog/blog” name=”blog” alias=”list_blog” template=”aw_blog/blog-cmspagename.phtml”}}

In Design, Add



Leave a Reply

*