Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Mar 12, 2024
1 parent 53abe4f commit d2718c8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 42 deletions.
3 changes: 3 additions & 0 deletions src/CmsSearchComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
65 changes: 24 additions & 41 deletions src/config/admin/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
],
],
]
]
];
],
],
],
],
],*/
];
2 changes: 1 addition & 1 deletion src/views/result/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
]) ?>

Expand Down

0 comments on commit d2718c8

Please sign in to comment.