This extension includes a few common widgets which you can use in your blog sidebar. There are widgets to display recent posts, list most commented posts and to display blog archives. Blog archives use javascript file with which toggling functionality is added to list elements. User can hide/show selected month for example.
Requirements ¶
- Yii 1.1.12
- Demo blog application which is supplied with Yii framework. The extension requires Post and Comment models from that application.
Usage ¶
Clone repository from Github project page. Copy the files to extensions folder in your application. If extensions folder does not exists, create it under your protected folder.
//to render archivelist widget
$this->beginWidget('ext.blogSidebar.ArchiveList');
//to render MostCommented widget
$this->beginWidget('ext.blogSidebar.MostCommented');
//to render RecentPosts widget
$this->beginWidget('ext.blogSidebar.RecentPosts');
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.