0 Replies Latest reply on Dec 13, 2010 10:02 PM by EricSean

    php portal filtering - can't find info on how to...

    EricSean

      Title

      php portal filtering - can't find info on how to...

      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.

      __________________________________________________
      ugg boots
      uggs