We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19889
    • 616 Posts
    Hello
    Does anybody know how to add a filter like this &filter=`id,152,2` for instance into the ditto config file instead of having it in the snippet call? Can’t figure it out what the proper syntax would be.

    Thank you
      • 4172
      • 5,888 Posts
      did you try

      $filter='id,152,2';
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 19889
        • 616 Posts
        seems to work - I was kind of confused that I wasn’t getting any headline - no documents found - however, this only happens when having a 2nd ditto call on the page?

        the language parameter however seems to be ignored totally in the config file.
          • 4172
          • 5,888 Posts
          ok, this is because the config-file is loaded after the language file.
          don’t know, if this would work, but you can try this in your config-file:

          $language='xxx';
          $filevalue=$ditto_base."lang/$language.inc.php";
          if (file_exists($filevalue)) {
          		include($filevalue);
          	}
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 19889
            • 616 Posts
            thanks Bruno - really appreciate your input.

            another thing I discovered is that the truncLen parameter is ignored as well - it works if I set it in the config file - so it’s just the other way around.