@Synacs-U
Html, CSS, Js, Jquery, PHP, Mysql

Как в pdoPage сделать выборку (фильтр) по TV?

Добрый день, как в pdoPage делать выборку?
[[!pdoPage?
        &tpl=`include.item.mini`
        &includeTVs=`all.collection, all.img4, all.price.cfo`
        &sortby=`{"id":"ASC"}`
        &limit=`12`
        &parents=`[[*id]]`
        &where=`{"tv.all.collection:LIKE":"Otti%"}`
]]

Именно where, т.к &tvFilters работает криво, и из него фильтр не сделаешь.
where работает на стандартные ключи, такие как pagetitle, description и тд. На tv почему то работать не хочет(
Зараннее спасибо.
  • Вопрос задан
  • 779 просмотров
Пригласить эксперта
Ответы на вопрос 2
@Synacs-U Автор вопроса
Html, CSS, Js, Jquery, PHP, Mysql
Немного логов
spoiler
[2019-02-12 15:54:13] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'TVall.collection' in 'where clause'
[2019-02-12 15:54:25] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'TVall.collection' in 'where clause'
[2019-02-12 15:54:26] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'TVall.collection' in 'where clause'
[2019-02-12 15:54:36] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'TVall.collection' in 'where clause'
[2019-02-12 15:54:39] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'TVall.collection' in 'where clause'
[2019-02-12 15:54:46] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'TVall.collection' in 'where clause'
[2019-02-12 15:54:50] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'tv.TVall' in 'where clause'
[2019-02-12 16:02:16] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'tv.TVall' in 'where clause'
[2019-02-12 16:02:27] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'tv.TVall' in 'where clause'
[2019-02-12 16:05:14] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'tv.TVall' in 'where clause'
[2019-02-12 16:05:21] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'tv.TVall' in 'where clause'
[2019-02-12 16:06:32] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'tv.TVall' in 'where clause'
[2019-02-12 16:09:21] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'Otti' in 'where clause'
[2019-02-12 16:09:26] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'Otti' in 'where clause'
[2019-02-12 16:10:06] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'Otti' in 'where clause'
[2019-02-12 16:10:40] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'Otti' in 'where clause'
[2019-02-12 16:16:30] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'Otti' in 'where clause'
[2019-02-12 16:17:34] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'Otti' in 'where clause'
[2019-02-12 16:17:39] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '==Otti AND `modResource`.`parent` IN (8,30,31,32,33,34,35,36,37,38,39,40,41,42,4' at line 1
[2019-02-12 16:17:44] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '==Otti AND `modResource`.`parent` IN (8,30,31,32,33,34,35,36,37,38,39,40,41,42,4' at line 1
[2019-02-12 16:18:49] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'tv.TVall.collection.value' in 'where clause'
[2019-02-12 16:19:02] (ERROR @ /home/d/della/sitelocal.ru/core/xpdo/om/xpdoquery.class.php : 702) Error parsing condition with key 0: 
[2019-02-12 16:19:06] (ERROR @ /home/d/della/sitelocal.ru/core/xpdo/om/xpdoquery.class.php : 702) Error parsing condition with key 0: 
[2019-02-12 16:19:16] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'tv.TVall' in 'where clause'
[2019-02-12 16:19:21] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'tv.TVall' in 'where clause'
[2019-02-12 16:19:28] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'TVall.collection' in 'where clause'
[2019-02-12 16:19:38] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'TVall.collection' in 'where clause'
[2019-02-12 16:19:46] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'TVall.collection' in 'where clause'
[2019-02-12 16:20:03] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'TVall.collection' in 'where clause'
[2019-02-12 16:21:32] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column 'TVall.collection' in 'where clause'
[2019-02-12 16:21:37] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column '+TVall.collection' in 'where clause'
[2019-02-12 16:21:41] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column '+tvall.collection' in 'where clause'
[2019-02-12 16:21:45] (ERROR @ /home/d/della/sitelocal.ru/core/components/pdotools/model/pdotools/pdofetch.class.php : 172) [pdoTools] Error 42S22: Unknown column '+tv.TVall' in 'where clause'
[2019-02-12 16:21:54] (ERROR @ /home/d/della/sitelocal.ru/core/xpdo/om/xpdoquery.class.php : 702) Error parsing condition with key 0: 2{"+tv.`TVall.collection`.`value`:LIKE":"%Otti%"2}
[2019-02-12 16:22:01] (ERROR @ /home/d/della/sitelocal.ru/core/xpdo/om/xpdoquery.class.php : 702) Error parsing condition with key 0: 2{"+tv.`TVall.collection`.`value`:LIKE":"%Otti%"2}
[2019-02-12 16:22:43] (ERROR in modProcessor::run @ /home/d/della/sitelocal.ru/core/model/modx/modprocessor.class.php : 177) Flat file processor support is deprecated since version 2.7.0.

Ответ написан
Комментировать
an-tar
@an-tar Куратор тега MODX
Full stack web developer
Именно where, т.к &tvFilters работает криво, и из него фильтр не сделаешь.

А можно подробнее, как именно задавали критерий и что именно получалось криво? Ибо всегда фильтровалось и работало при поиске по TV через tvFilters
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы