I
I
IvanRyz2020-03-25 11:11:31
MODX
IvanRyz, 2020-03-25 11:11:31

How to display resources through pdoResources by TV field (multiple choice)?

Hello,
Please help me with the following problem.
I am unable to display resources through pdoResources by TV field (multiple choice)

Created a TV field multiple choice club_id Specified multiple choice
in the input parameters, and the following query in the possible values:

@SELECT `pagetitle` AS `name`,`id` FROM `site_content` WHERE `parent`=10 AND `published` = 1 AND `deleted` = 0


Separate the output parameters with ","

Next, in the template chunk, I output the resources with the following construction:
{'!pdoResources' | snippet : [
                      'tpl' => 'tpl.disciplineAnons',
                      'parents' => '0',
                      'limit' => 6,
                      'resources' => 'club_id',
                      'sortby' => '{"menuindex":"ASC"}',
                      'includeTVs' => 'imgAnons,menutitle,description',
                      'tvPrefix' => '',
                      'includeContent' => 1,
                      'showLog' => 0,
              ]}


But pdoResources gives me all the resources instead of the resources that have the club_id field filled in.

Please help me figure out what the problem is.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IvanRyz, 2020-03-25
@IvanRyz

Solved the issue by writing a snippet

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question