Фильтрация по TV используя Fenom

Доброго времени суток!
Сайт-каталог с играми. У каждой игры бывают и видео, и новости, и пр. Чтобы не плодить одинаковых контейнеров (видео, новости) в корне для этого использую два контейнера. Для привязки новости, обзора или видео к определенной игре, использую TV с типом ввода Список ресурсов. Здесь Вывод ресурсов с выбранным параметром в TV поле подсмотрел, как выводить относящиеся ресурсы к игре с помощью фильтрации. Но с использованием Fenom ресурсы не выводятся

Рабочий код:
[[pdoResources?
    &parents=`0`
    &tvFilters=`gamename===[[*id]]`
    &depth=`0`
    &sortby=`publishedon`
    &tpl=`@FILE tpl/tpl_shortstory.tpl`
    &showLog=`1`
]]

То же на Fenom, однако ничего не выводит:
{$_modx->runSnippet('!pdoResources', [
'parents' => 0,
'tvFilters' => 'gamename==={$_modx->resource.id}',
'limit' => 3,
'depth' => '0',
'sortby' => 'publishedon',
'tpl' => '@FILE tpl/tpl_shortstory.tpl',
'includeTVs' => 'small_img',
'showLog' => 1
])}

Фильтруется этой строчкой:
'tvFilters' => 'gamename==={$_modx->resource.id}',
Где я ошибаюсь? Прошу помощи.

Лог вызова (Fenom):
0.0001411: pdoTools loaded
0.0000300: xPDO query object created
0.0000360: Added TVs filters
0.0004048: Included list of tvs: gamename, small_img
0.0002670: leftJoined modTemplateVarResource as TVgamename
0.0002210: leftJoined modTemplateVarResource as TVsmall_img
0.0004501: Added selection of modResource: SQL_CALC_FOUND_ROWS `id`, `type`, `contentType`, `pagetitle`, `longtitle`, `description`, `alias`, `link_attributes`, `published`, `pub_date`, `unpub_date`, `parent`, `isfolder`, `introtext`, `richtext`, `template`, `menuindex`, `searchable`, `cacheable`, `createdby`, `createdon`, `editedby`, `editedon`, `deleted`, `deletedon`, `deletedby`, `publishedon`, `publishedby`, `menutitle`, `donthit`, `privateweb`, `privatemgr`, `content_dispo`, `hidemenu`, `class_key`, `context_key`, `content_type`, `uri`, `uri_override`, `hide_children_in_tree`, `show_in_tree`, `properties`
0.0000110: Added selection of modTemplateVarResource: IFNULL(`value`, '') AS `tv.gamename`
0.0000088: Added selection of modTemplateVarResource: IFNULL(`value`, '') AS `tv.small_img`
0.0000479: Replaced TV conditions
0.0000279: Processed additional conditions
0.0003519: Added where condition: 0=`TVgamename`.`value` = '125', modResource.published=1, modResource.deleted=0
0.0000250: Replaced TV conditions
0.0001261: Sorted by modResource.publishedon, DESC
0.0000029: Limited to 3, offset 0
0.0002222: SQL prepared «SELECT SQL_CALC_FOUND_ROWS `modResource`.`id`, `modResource`.`type`, `modResource`.`contentType`, `modResource`.`pagetitle`, `modResource`.`longtitle`, `modResource`.`description`, `modResource`.`alias`, `modResource`.`link_attributes`, `modResource`.`published`, `modResource`.`pub_date`, `modResource`.`unpub_date`, `modResource`.`parent`, `modResource`.`isfolder`, `modResource`.`introtext`, `modResource`.`richtext`, `modResource`.`template`, `modResource`.`menuindex`, `modResource`.`searchable`, `modResource`.`cacheable`, `modResource`.`createdby`, `modResource`.`createdon`, `modResource`.`editedby`, `modResource`.`editedon`, `modResource`.`deleted`, `modResource`.`deletedon`, `modResource`.`deletedby`, `modResource`.`publishedon`, `modResource`.`publishedby`, `modResource`.`menutitle`, `modResource`.`donthit`, `modResource`.`privateweb`, `modResource`.`privatemgr`, `modResource`.`content_dispo`, `modResource`.`hidemenu`, `modResource`.`class_key`, `modResource`.`context_key`, `modResource`.`content_type`, `modResource`.`uri`, `modResource`.`uri_override`, `modResource`.`hide_children_in_tree`, `modResource`.`show_in_tree`, `modResource`.`properties`, IFNULL(`TVgamename`.`value`, '') AS `tv.gamename`, IFNULL(`TVsmall_img`.`value`, '') AS `tv.small_img` FROM `rpan_site_content` AS `modResource` LEFT JOIN `rpan_site_tmplvar_contentvalues` `TVgamename` ON `TVgamename`.`contentid` = `modResource`.`id` AND `TVgamename`.`tmplvarid` = 33 LEFT JOIN `rpan_site_tmplvar_contentvalues` `TVsmall_img` ON `TVsmall_img`.`contentid` = `modResource`.`id` AND `TVsmall_img`.`tmplvarid` = 10 WHERE ( `TVgamename`.`value` = '125' AND `modResource`.`published` = 1 AND `modResource`.`deleted` = 0 ) ORDER BY modResource.publishedon DESC LIMIT 3 „
0.0005941: SQL executed
0.0000989: Total rows: 0
0.0000079: Rows fetched
0.0000150: Prepared and processed TVs
0.0000012: Returning processed chunks
0.0031271: Total time
16 252 928: Memory usage
Алексей
07 июня 2016, 14:12
modx.pro
1
2 806
0

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

SeRg
01 декабря 2017, 02:20
0
Решилась проблема? столкнулся с такой же… Спасибо
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
2