0

In the element API following has been defined.

$criteria = [
        'section' => $settings['section'],
        'limit' =>  $settings['limit'],
        'offset' =>  $settings['limit'] * Craft::$app->request->getParam('offset'),
        'order' => $settings['orderBy'],
        'relatedTo' => $settings['relatedTo']
    ];

when 'relatedTo' => $settings['relatedTo'] is added to above query, results don't show, but without it shows the results. What is the mistake I did here?

  • It might help to see the $settings array for this. – Oli Jan 28 at 11:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.