We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11975
    • 2,542 Posts
    Ok

    there is a difference beetwen the last date.extender.inc.php and the dateFilter.extender...
    The first one was useful to format the date plceholder according your local time
    The second one named dateFilter is used by reflect

    anyway if you wanted to call the dateFilter.extender your param should be &extenders=`dateFilter` and no more &extenders=`date`

    :-)
      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
      • 24100
      • 35 Posts
      Thanks for clarifying that heliotrope. smiley

      I’m still not getting the dates to show up though. Based on the debug output, shouldn’t the ’pub_date’ be retrieved from the database if I’ve specified that as my dateSource?

      I’ve attached an image showing the debug output.



        • 18397
        • 3,250 Posts
        px8r.... wrong Ditto version! Thats not RC3!

        @heliotrope: [FIXED] QE Issues with incorrect ID and custom placeholders
        (in SVN of course wink )

        Also, just wanted to say a big thanks to heliotrope for all of his optimization ideas/examples and testing throughout the development cycle.
        The posts are in a private forum
          • 11975
          • 2,542 Posts
          wink you are not running the latest version of ditto.

          There is an awesome new debug mode.

          Update your version from the first post of this thread.


          :-)

          P.S: Mark we’ve posted almost at the same moment.

          I’m glad to help
          You’ve done such an amazing work on this version

          :-)
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 24100
            • 35 Posts
            Mark and heliotrope, I hang my head. embarrassed

            I setup RC3 and the calls are working correctly - sorry about that.

            I did try to see the debug console and even though the items were displaying correctly it threw a parse error in the popup window:

            PHP error debug
            Error: wordwrap() expects parameter 1 to be string, array given
            Error type/ Nr.: Warning - 2
            File: /vservers/ip-only-108502/htdocs/assets/snippets/ditto/classes/debug.class.inc.php
            Line: 175
            Line 175 source: $v = wordwrap($v,100,"\r\n",1);
              • 33372
              • 1,611 Posts
              Quote from: Mark at Mar 06, 2007, 02:54 AM

              @ZAP: &filter=`id,999,2` would be the filter to not remove anything. Saying 1 would mean only include id==999.

              Found the problem. Will commit the fix to svn soon.

              What exactly was the ksort error?

              Thanks for the quick fix!

              The ksort error was (and still is):
              « MODx Parse Error »
              MODx encountered the following error while attempting to parse the requested resource: 
              « PHP Parse Error » 
                
              PHP error debug 
                Error:  ksort() expects parameter 1 to be array, null given   
                Error type/ Nr.:  Warning - 2   
                File:  /path/to/my/www/assets/snippets/ditto2/classes/debug.class.inc.php   
                Line:  158   
                Line 158 source:  ksort($parameters);  
              


              I tried a lot of different filters before giving up, although I found the list given here to have the opposite values of what I expected (or is it just me who’s confused?): http://ditto.modxcms.com/files/snippet-ditto-php.html#filter
                "Things are not what they appear to be; nor are they otherwise." - Buddha

                "Well, gee, Buddha - that wasn't very helpful..." - ZAP

                Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                • 18397
                • 3,250 Posts
                Quote from: pxl8r at Mar 06, 2007, 06:38 PM

                PHP error debug
                Error: wordwrap() expects parameter 1 to be string, array given
                Error type/ Nr.: Warning - 2
                File: /vservers/ip-only-108502/htdocs/assets/snippets/ditto/classes/debug.class.inc.php
                Line: 175
                Line 175 source: $v = wordwrap($v,100,"\r\n",1);

                Are you using RC3 p1 or p2 (look at the downloaded zip/tarball name)


                @ZAP: Try the latest SVN HEAD where I [FIXED] ksort error (hopefully)
                  • 18397
                  • 3,250 Posts
                  For all those confused about filters:

                  The operators in that table are correct, however their application can be confusing. Say you have 3 documents with IDs 33,66, and 99. If you use &filter=`id,33,1` it will only show document 33 because 33==33 when the filter executes. If you used a 2 as the last digit, it would show all documents except 33.
                    • 18397
                    • 3,250 Posts
                    In the SVN: [REMOVED] Non-neccessary header
                      • 24100
                      • 35 Posts
                      Mark, I was using pc2; grabbed pc3 and the debug console is amazing! Great job!

                      This discussion is closed to further replies. Keep calm and carry on.