skeeks/cms-saved-filters

Universal saved filters

1.1.0.1 2018-04-10 12:07 UTC

This package is auto-updated.

Last update: 2024-10-29 05:10:31 UTC


README

Latest Stable Version Total Downloads Reference Status Dependency Status

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist skeeks/cms-saved-filters "*"

or add

"skeeks/cms-saved-filters": "*"

Configuration app

'components' =>
[
    'savedFilters' => [
        'class'     => 'skeeks\cms\savedFilters\SavedFiltersComponent',
        'saveSettingsToDb' => 'json' // or serialize
    ],

    'urlManager' => [
        'rules' => [
            'skeeks\cms\savedFilters\SavedFiltersUrlRule' => [
                'class' => 'skeeks\cms\savedFilters\SavedFiltersUrlRule',
            ],
        ]
    ],

    'cms' =>
    [
        'relatedHandlers' => [
            'skeeks\cms\savedFilters\RelatedHandlerSavedFilter' =>
            [
                'class' => 'skeeks\cms\savedFilters\RelatedHandlerSavedFilter'
            ]
        ],
    ],

    'i18n' => [
        'translations' =>
        [
            'skeeks/savedFilters' => [
                'class'             => 'yii\i18n\PhpMessageSource',
                'basePath'          => '@skeeks/cms-saved-filters/savedFilters/messages',
                'fileMap' => [
                    'skeeks/savedFilters' => 'main.php',
                ],
            ]
        ]
    ]
],

'modules' =>
[
    'savedFilters' => [
        'class'         => 'skeeks\cms\savedFilters\SavedFiltersModule',
    ]
]

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