Aw_blog is an official blog plug-in that supports the latest version 1.9. After installation, an independent blog management menu is automatically generated in the management background, with specific settings. To set the number of displayed articles on the CMS page, follow these steps:
-
- Duplicate
APP \ design \ frontend \ Default \ helloseasonal \ template \ aw_blog \Blog. phtml
To
APP \ design \ frontend \ Default \ helloseasonal \ template \ aw_blog \Bloghome. phtml
-
- Edit bloghome. phtml
- Optional: If you want to remove the pagination, remove the following occurrences
| 1 |
<? PHPEcho $ This-> Getchildhtml ('Aw _ blog_comments_toolbar');?> |
- Optional: If you want to set a limit to the No of post you want to show in the home page, add
BelowForeach...
| 123456 |
...<?php foreach ($posts as $post): if ($i++ > 5) break;?> <div class="postWrapper"> <div class="postTitle"> |
-
- Log in to mangento Admin
-
- Go to CMS-> pages and select the home page or the page you want to insert the blog
-
- Click content on the side navigation
- At the placement which you want to insert, paste the following codes
| 1 |
{Block type ="Blog/blog" Name ="Blog" Alias ="List_blog" Template ="Aw_blog/bloghome. phtml"}} |
Reproduced in: http://www.entroducing.com/view/add-aheadworkss-blog-list-to-magento-home-page-or-any-cms-page
Set the number of articles on any page of aw_blog