diff --git a/src/CmsSearchComponent.php b/src/CmsSearchComponent.php index 239ebfe..2f3b0ad 100644 --- a/src/CmsSearchComponent.php +++ b/src/CmsSearchComponent.php @@ -249,6 +249,9 @@ public function buildElementsQuery(\yii\db\ActiveQuery $activeQuery) */ public function logResult(ActiveDataProvider $dataProvider) { + //todo:временно отключим + return false; + $pages = 1; if ($dataProvider->totalCount > $dataProvider->pagination->pageSize) { diff --git a/src/config/admin/menu.php b/src/config/admin/menu.php index 990eb0f..004adea 100644 --- a/src/config/admin/menu.php +++ b/src/config/admin/menu.php @@ -5,49 +5,32 @@ * @copyright 2010 SkeekS (СкикС) * @date 15.04.2016 */ -return - [ - 'other' => +return [ + /*'other' => [ + 'items' => [ [ - 'items' => - [ - [ - "label" => \Yii::t('skeeks/search', "Searching"), - "img" => ['\skeeks\cms\search\assets\CmsSearchAsset', 'icons/search.png'], - - 'items' => - [ - /*[ - "label" => \Yii::t('skeeks/search', "Settings"), - "url" => [ - "cms/admin-settings", - "component" => 'skeeks\cms\search\CmsSearchComponent' - ], - "img" => ['skeeks\cms\assets\CmsAsset', 'images/icons/settings-big.png'], - "activeCallback" => function ($adminMenuItem) { - return (bool)(\Yii::$app->request->getUrl() == $adminMenuItem->getUrl()); - }, - ],*/ + "label" => \Yii::t('skeeks/search', "Searching"), + "img" => ['\skeeks\cms\search\assets\CmsSearchAsset', 'icons/search.png'], - [ - "label" => \Yii::t('skeeks/search', "Statistic"), - "img" => ['\skeeks\cms\search\assets\CmsSearchAsset', 'icons/statistics.png'], + 'items' => [ + [ + "label" => \Yii::t('skeeks/search', "Statistic"), + "img" => ['\skeeks\cms\search\assets\CmsSearchAsset', 'icons/statistics.png'], - 'items' => - [ - [ - "label" => \Yii::t('skeeks/search', "Jump list"), - "url" => ["cmsSearch/admin-search-phrase"], - ], + 'items' => [ + [ + "label" => \Yii::t('skeeks/search', "Jump list"), + "url" => ["cmsSearch/admin-search-phrase"], + ], - [ - "label" => \Yii::t('skeeks/search', "Phrase list"), - "url" => ["cmsSearch/admin-search-phrase-group"], - ], - ], - ], - ], + [ + "label" => \Yii::t('skeeks/search', "Phrase list"), + "url" => ["cmsSearch/admin-search-phrase-group"], + ], ], - ] - ] - ]; \ No newline at end of file + ], + ], + ], + ], + ],*/ +]; \ No newline at end of file diff --git a/src/views/result/index.php b/src/views/result/index.php index dd5a2a4..746e87b 100644 --- a/src/views/result/index.php +++ b/src/views/result/index.php @@ -39,7 +39,7 @@ 'enabledCurrentTree' => \skeeks\cms\components\Cms::BOOL_N, 'dataProviderCallback' => function (\yii\data\ActiveDataProvider $dataProvider) { \Yii::$app->cmsSearch->buildElementsQuery($dataProvider->query); - \Yii::$app->cmsSearch->logResult($dataProvider); + //\Yii::$app->cmsSearch->logResult($dataProvider); }, ]) ?>