Add aheadworks’s blog list to magento home page or any CMS page

Ever wondering how to add aheadworks’s mangento extenstion–  blog list to your home page?

Here’s how to do it.

  1. Duplicate
  2. Edit bloghome.phtml
  3. Optional: If you want to remove the pagination, remove the following occurrences

     <?php echo $this->getChildHtml('aw_blog_comments_toolbar'); ?>
  4. Optional: If you want to set a a limit to the no of post you want to show in the home page, add

    if ($i++ > 5) break;

    below foreach

    <?php foreach ($posts as $post): 
    	if ($i++ > 5) break;
        <div class="postWrapper">
            <div class="postTitle">
  5. Log in to Mangento Admin
  6. Go to CMS -> Pages and select the home page or the page you want to insert the blog
  7. Click Content on the side navigation
  8. At the placement which you want to insert, paste the following codes
    {{block type="blog/blog" name="blog" alias="list_blog" template="aw_blog/bloghome.phtml"}}

At the above time of writing, I am using Magento and aheadworks extension edition.

You may see the following website for reference:

Similar Posts:

VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
Add aheadworks's blog list to magento home page or any CMS page, 10.0 out of 10 based on 1 rating