Связанные свойства (Widget)

Связанные свойства (Widget)

skeeks/cms-rp-view-widget

Семенов Александр

Install

Widget view model relited properties SkeekS CMS

@разработчик решения

Publication time: Wednesday, December 28, 2016 (9 months ago)

Created by: Семенов Александр

Category: Прочее

Актуальная версия: 1.0.0
Aug 31, 2017, 10:39:16 PM (a month ago)

Packagist: skeeks/cms-rp-view-widget

: https://github.com/skeeks-cms/cms-rp-view-widget

: 287 (Per month: 41)

Тип: Компонент

Widget view model relited properties SkeekS CMS

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist skeeks/cms-rp-view-widget "*"

or add

"skeeks/cms-rp-view-widget": "*"

Example


<? $widget = \skeeks\cms\rpViewWidget\RpViewWidget::beginWidget('product-properties', [ 'model' => $model, //'visible_properties' => ['color', 'material'], //'visible_only_has_values' => true, //'viewFile' => '@app/views/your-file', ]); ?> <? //$widget->viewFile = '';?> <? \skeeks\cms\rpViewWidget\RpViewWidget::end(); ?>

View file


<?php /* @var $this yii\web\View */ /* @var $widget \skeeks\cms\rpViewWidget\RpViewWidget */ ?> <? if ($attributes = $widget->rpAttributes) : ?> <? foreach ($attributes as $code => $value) : ?> <p> <strong><?= $widget->model->relatedPropertiesModel->getRelatedProperty($code)->name; ?>:</strong> <?= $widget->model->relatedPropertiesModel->getSmartAttribute($code); ?> </p> <? endforeach; ?> <? endif; ?>

Links


skeeks!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com

How to show the advanced properties of elements in SkeekS CMS

More

Showing 1-1 of 1 item.

CHANGELOG

1.0.0

  • Update

1.0.0-alpha2

  • A small change in the operating logic

1.0.0-alpha

  • Can be used

All Comments (0)
No Comments

dev-master — Aug 31, 2017, 10:39:16 PM (a month ago)

1.0.0 — Aug 31, 2017, 10:39:16 PM (a month ago)

1.0.0-alpha2 — Dec 28, 2016, 12:02:46 PM (9 months ago)

1.0.0-alpha — Dec 28, 2016, 11:29:34 AM (9 months ago)

Стандартная установка:

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

"skeeks/cms-rp-view-widget": "*"

Запустите обновление зависимостей


Читать про обнолвение SkeekS CMS