We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    And now, I present Ditto 2.0a2. For what was new in Alpha 1 go here: http://modxcms.com/forums/index.php/topic,10673.msg72425.html#msg72425

    New in Alpha 2:

    PHx support, summary, date, request and dateFilter extenders, large number of bug fixes, massive speed increases thanks to Helio’s ideas, item[x] placeholders which now work with pagination, and added back in save support for Reflect along with Reflect herself.

    This should be backwards compatible now save for the summary and date placeholders which need to be added like so &extenders=`summary,date`

    Please test this out thoroughly and report back your finding. Thanks wink
      • 11975
      • 2,542 Posts
      YES !!!!

      Looks pretty fast
      Much more than my changes
      You’re a wizard Mark

      Just a little error:

      Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /Users/fredm/Sites/test/assets/snippets/ditto02/classes/ditto.class.inc.php on line 403

      line 403: $resource = $filterObj->execute(&$resource, $filter);

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 18397
        • 3,250 Posts
        Fixed in SVN.
          • 11975
          • 2,542 Posts
          Hi mark,

          the pagination seems buggy
          the links are as follow:
          http://fm.local/~fredm/test/~fredm/test/index.php?id=1&start=1989

          :-)
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 18397
            • 3,250 Posts
            Bizzare, I can’t seem to duplicate that. I just posted an updated ditto_2a2_1 file which should fix the calltime error.
              • 11975
              • 2,542 Posts
              If i’m changing this line in buildUrl function
              $url = substr($modx->config[’site_url’], 0, -1).$modx->makeURL($cID, ’’, $queryString);
              in
              $url = $modx->makeURL($cID, ’’, $queryString);

              the pagination works fine.

              :-)
                Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                • 18397
                • 3,250 Posts
                What version of MODx are you testing this on?

                This release is for MODx 0.9.5 and may not function on 0.9.7.
                  • 11975
                  • 2,542 Posts
                  I’m running 0.9.5
                  I will test it on my remote install to see if I can reproduce the issue and will post back.

                  :-)
                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 18397
                    • 3,250 Posts
                    Sounds good.
                      • 22303 MODX Staff
                      • 10,725 Posts
                      Quote from: heliotrope at Jan 15, 2007, 05:14 PM

                      If i’m changing this line in buildUrl function
                      $url = substr($modx->config[’site_url’], 0, -1).$modx->makeURL($cID, ’’, $queryString);
                      in
                      $url = $modx->makeURL($cID, ’’, $queryString);

                      the pagination works fine.

                      :-)
                      Yes, that first call that is prepending the site url is not valid. That should never be done.