We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16179
    • 4 Posts
    Where can i find examples of ditto call using extenders like dateFilter?
    Any variables specified for dateFilter doesn’t seem to work sad

    I want to get all content with createdon field for the 4th month.
    Here is my ditto call:
    [[Ditto?parents=`36`&depth=`1`&tpl=`news_item`&paginate=`1`&paginateAlwaysShowLinks=`1`&paginateSplitterCharacter=`1`&sortBy=`menuindex`&sortDir=`ASC`&extenders=`dateFilter`&month=`4`]] 
    


    Thanks
      • 4749
      • 623 Posts
      Go here.
        The MODx has you...
        Utah Web Design
        • 16179
        • 4 Posts
        Quote from: cbaone at Jun 03, 2008, 12:14 AM

        Go here.

        I’ve seen this one - can u provide some usage examples?
          • 4749
          • 623 Posts
          [[Ditto? &parents=`1` &id=`blog` &display=`10` &tpl=`BlogTpl` &paginate=`1` &extenders=`summary,dateFilter` &dateSource=`pub_date` &dateFormat=`%B %e, %Y` &orderBy=`pub_date DESC` &paginateAlwaysShowLinks=`1` &tagData=`documentTags` &getDocuments=`1` &trunc=`1` &truncLen=`1000` &truncOffset=`20` &truncText=`Continue Reading »` ]]


          In this call I’m using the summary and dateFilter extenders. The extenders "extend" the capability of ditto. The summary extender allows me to truncate text in a number of different ways. The dateFilter extender allows me to sort my archived blog posts how I want to, usually used with the Reflect snippet.

          Just read through it thoroughly. It may not make much sense at first, but you have to just do it. Here’s an older Ditto document by Bill Fernandez. It helped me a ton when I was looking at the Ditto support site. It is laid out in such a way that it makes the support site come alive. The support site is updated past what’s in this document. Once you get your bearings, ditto.modxcms.com is a very, very great resource. Also, make sure to read this too..
            The MODx has you...
            Utah Web Design