G
G
gerrper2014-09-16 23:07:37
Python
gerrper, 2014-09-16 23:07:37

ModX - pagetitle in tvFilters doesn't work. How to fix?

calling like this

$tvFilters = "pagetitle==%тест%";

$runParams = array(
    'tpl' => 'searchResult',
    'processTVs' => '1',
    'parents' => "0",
    'limit' => "150",
    'includeTVs' => "1",
    'includeTVList' => 'pagetitle',
    'tvFilters' => $tvFilters
);

$output = $modx->runSnippet('getResources', $runParams);

however, pagetitle is not filtered. And on my TV - everything works. How to make tvFilters accept pagetitle as well?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Alpeev, 2014-09-17
@QTnub

it will not work, tvFilters already says that this is a TV search, use pdoTools and the where condition

A
alijonshukurov, 2015-10-13
@alijonshukurov

modx.im/blog/fast-solution/59.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question