AnsweredAssumed Answered

php portal filtering - can't find info on how to make it work

Question asked by d4creative on Nov 17, 2010
Latest reply on Sep 22, 2011 by DmitriBorovoy

Title

php portal filtering - can't find info on how to make it work

Your post

I have searched in every possible way, bought books, and experiments. I can not find any examples anywhere of how to use the setRelatedSetsFilters() command to filter the portal results on a web page. I have got portal filtering set up and working on a layout in my database.

The documentation all says it can be done but NOWHERE does ANYONE show us how?!

The PHP docs say to use it "with find requests".

Here's what I have tried (amongst other ways):

    $findCommand =& $fm->newFindCommand($layoutName);
    $findCommand->addFindCriterion('CP_WebUsername', '=='.FM_USER);
    $findCommand->addFindCriterion('CP_WebPassword', '=='.FM_PSWD);
    $findCommand->setRelatedSetsFilters('layout');
    $result = $findCommand->execute();

Please help. A simple example is all I need.

Outcomes