Content Display

Content Widget

Feature Docs

Display content items (blog posts, news, articles, pages) in various layouts. Filter by type, category, or tag. Supports list, grid, carousel, and card layouts.

Cards Grid

Blog posts in a card grid layout.

Code
<?php echo ContentWidget::widget([ 'type' => 'blog', 'layout' => 'cards', 'limit' => 3, ]); ?>
Live Demo

List View

Vertical list with thumbnails.

Code
<?php echo ContentWidget::widget([ 'type' => 'news', 'layout' => 'list', 'limit' => 5, ]); ?>
Live Demo
Version 2.0 Released: What is New

Version 2.0 brings exciting new features including improved performance, new blo...

2/18/26 · 2 min read
Introducing Our New Content Management System

We are excited to announce the launch of our new CMS built on Yii2 framework wit...

2/17/26 · 2 min read

Carousel

Featured content carousel.

Code
<?php echo ContentWidget::widget([ 'featured' => true, 'layout' => 'carousel', 'limit' => 5, ]); ?>
Live Demo

Configuration Options

OptionTypeDefaultDescription
typestringnullContent type: blog, news, article, page
layoutstringlistLayout: list, grid, carousel, cards
limitint5Number of items to display
categorystring|intnullFilter by category slug or ID
tagstringnullFilter by tag slug
featuredboolfalseShow only featured content
showImagebooltrueShow featured image
showExcerptbooltrueShow content excerpt