rosgear/rg-wd-tags

Widget "List of objects associated with the tag" for the RosGear web application

Maintainers

Package info

github.com/rosgear/rg-wd-tags

Homepage

Type:component

pkg:composer/rosgear/rg-wd-tags

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0 2026-06-13 14:21 UTC

This package is auto-updated.

Last update: 2026-06-18 11:07:38 UTC


README

Русский | English

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

Виджет «Список объектов связанных с меткой»

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

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

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

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

в шаблоне:

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

с namespace:

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

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

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

Установка

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

$ composer require rosgear/rg-wd-tags

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

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

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

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

Widget «List of objects associated with the tag»

The widget is designed to display on a web page a list of objects from a database, filtered by a specified label (tag), with the ability to customize the output parameters.

Installation

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

$ composer require rosgear/rg-wd-tags

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

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

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.