We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 897
    • 1,620 Posts
    1. после исключения документов останутся нужные. поэтому фильтр строиться методом "от обратного"
    2. если работает частный случай, значит можно говорить что полпути пройдено. останется сделать метод универсальным. пока не заработает частный случай об общих говорить рано.

      "Und wenn du lange in einen Abgrund blickst, blickt der Abgrund auch in dich hinein."

      Не используйте Revo для "просто сайтов". Используйте Evo

      Who can defeat the Russian bear?
      • 15493
      • 4 Posts
      Quote from: Aleksey at Mar 02, 2008, 07:48 AM

      все-таки я поражаюсь людям.

      ну читайте вы мануалы, ну полезное это занятие, времени займет не больше чем зависание на форуме + эксперименты

      http://ditto.modxcms.com/tutorials/basic_filtering.html


      Multiple Filter Clauses

      A filter may include multiple clauses, separated by the global delimiter, in the form:
      clause|clause|clause|etc. Where:

      * "clause" is any filter clause as defined above.
      * "|" (the pipe symbol) is the Global Filter Delimite, the character that tells Ditto where the division is between clauses.
      * "etc." means there is no fixed limit to the number of clauses you may include.

      Multiple clauses have an "OR" relationship. I.e. a document will be excluded if it meets the criterion of any one clause (clause-1 OR clause-2 OR clause-3, etc.).
      Example

      The filter
      id,50,2|id,52,2

      means "exclude any document whose id field equals 50 or 52."

      Мануалы мы читаем.
      Если я делаю $filter = "longtitle,15.4&quot,7";
      то он выводит все страницы у которых longtitle содержит 15.4" но вот если я делаю
      $filter = "longtitle,15.4&quot,7|longtitle,16.4&quot,7";
      Multiple clauses have an "OR" relationship так написано в документации, но не работает.
      С английским у меня все в порядке.
      И документацию читал, перепробовал все, ни х не работает.
      И в апострофы пробовал засовывать.