rosgear/rg-wd-articles 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rosgear/rg-wd-articles

Composer 安装命令:

composer require rosgear/rg-wd-articles

包简介

Widget "List of Articles" for the RosGear web application

README 文档

README

Русский | English

Latest Stable Version Total Downloads Author Source Code Software License Component type: widget Component ID: rg-wd-articles php 8.2+

Виджет «Список материалов»

Виджет предназначен для формирования и вывода списка материалов (статей) из базы данных с учётом заданных параметров фильтрации и сортировки.

Пример применения

с менеджером виджетов:

$list = Ge::$app->widgets->get('rg.wd.articles',  ['sort' => 'date', limit' => 10]);
$list->run();

в шаблоне:

$this->widget('rg.wd.articles', [
    'mode'       => 'list',
    'sort'       => ['default' => 'date,a'],
    'pagination' => ['defaultLimit' => 20],
    'itemsView'  => '/blog/blog-items',
    'pager'      => [
        'itemTpl'       => '<li>{link}</li>',
        'activeItemTpl' => '<li class="active">{link}</li>',
        'options'       => ['class' => 'justify-content-center']
    ]
]);

с namespace:

use Rg\Widget\Articles\Widget as List;
echo List::widget(['mode' => 'list', pagination' => ['limit' => 20]]);

если namespace ранее не добавлен в PSR, необходимо выполнить:

Ge::$loader->addPsr4('Rg\Widget\Articles\\', Ge::$app->modulePath . '/rg/rg.wd.articles/src');

Установка

Для добавления виджета в ваш проект, вы можете просто выполнить команду ниже:

$ composer require rosgear/rg-wd-articles

или добавить в файл composer.json вашего проекта:

"require": {
    "rosgear/rg-wd-articles": "*"
}

или скачать архив на странице виджета в каталоге приложений RosGear.

После добавления виджета в проект выполните его установку в редакцию веб‑приложения с помощью Панели управления GePanel.

Widget «List of articles»

The widget is designed to generate and display a list of materials (articles) from the database, taking into account the specified filtering and sorting parameters.

Installation

To add the widget to your project, you can simply run the command below:

$ composer require rosgear/rg-wd-articles

or add to your project's composer.json file:

"require": {
    "rosgear/rg-wd-articles": "*"
}

or download the archive from the widget page in the RosGear application catalog.

After adding the widget to the project, install it into the web application edition using the GePanel Control Panel.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固