Сортировка по TV в mFilter2

Как настроить сортировку ресурсов modx по TV в mFilter2?
Вроде все по мануалу делаю. Не могу понять почему не взлетает.

Вкратце: есть каталог, в нем несколько папок-категорий, в папках ресурсы modx, у ресурсов есть TV — «power».
Делаю так:
[[!mFilter2?
	&parents=`[[*id]]`
	&showLog=`1`
	&hideContainers=`true`
	&disableSuggestions=`true`
	&filters=`tv|power:number`
	&tplFilter.row.tv|power=`tpl.mFilter2.filter.number`
	&sort=`resource|pagetitle:asc`  
	]]
Результат — выводятся товары, можно фильтровать по тв-шке «power», сортировать по «pagetitle».

Добавляю в вызове сортировку по TV, «tv|power:asc»:
[[!mFilter2?
	&parents=`[[*id]]`
	&showLog=`1`
	&hideContainers=`true`
	&disableSuggestions=`true`
	&filters=`tv|power:number`
	&tplFilter.row.tv|power=`tpl.mFilter2.filter.number`
	&sort=`resource|pagetitle:asc, tv|power:asc`  
	]]
Результат — «Подходящих результатов не найдено.»
Видимо я туплю и делаю что-то не так…

Во втором случае это в логе:
0.0037770: pdoTools loaded.
0.0013981: Query parameters are prepared.
0.0000181: xPDO query object created
0.0003800: leftJoined mseIntro as Intro
0.0000019: Grouped by modResource.id
0.0000060: Parameter "return" set to "ids", so we select only primary key
0.0005479: Processed additional conditions
0.0007210: Added where condition: modResource.parent:IN(5,8,9,10,16,17,18,15,19,12,11,13,14), modResource.published=1, modResource.deleted=0, modResource.isfolder=0
0.0000510: Sorted by modResource.id, ASC
0.0002232: SQL prepared "SELECT `modResource`.`id` FROM `modx_site_content` AS `modResource` LEFT JOIN `modx_mse2_intro` `Intro` ON `modResource`.`id`=`Intro`.`resource` WHERE  ( `modResource`.`parent` IN (5,8,9,10,16,17,18,15,19,12,11,13,14) AND `modResource`.`published` = 1 AND `modResource`.`deleted` = 0 AND `modResource`.`isfolder` = 0 )  GROUP BY modResource.id ORDER BY modResource.id ASC "
0.0003390: SQL executed
0.0000110: Rows fetched
0.0070949: Total time
12 058 624: Memory usage
0.0000961: Fetched ids for building filters: "11,12,13,14,15,16,17,18,19" from element "mSearch2"
0.0000041: Total number of results: 9
0.0000019: Getting filters for ids: "11,12,13,14,15,16,17,18,19"
0.0001469: Fired paginator: "pdoPage"
0.0000041: Filters retrieved
0.0000091: Total filter operations: 0
0.0156348: Total time
13 107 200: Memory usage
exist17
21 апреля 2016, 10:33
modx.pro
4 726
0

Комментарии: 1

exist17
21 апреля 2016, 15:17
0
Сам спросил, сам ответил. Все оказалось очень просто. Нужно было добавить
&includeTVs=`power`
    Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
    1