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

    I am just getting started with MODx. I installed and saw that the simple blog example in the demo site shows the archive links but clicking them does not filter the results by month. It just shows me all the results anyway.

    [[Ditto? &startID=`2` &summarize=`2` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]]
    Showing [+start+] - [+stop+] of [+total+] Articles

    [+previous+] [+pages+] [+next+]

    [[Reflect? &dittoSnippetParameters=`startID:2` &groupByYears=`0` &showItems=0` &tplMonth=`reflect_month_tpl`]]
      • 18397
      • 3,250 Posts
      Try this:
      [!Ditto? &startID=`2` &summarize=`2` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`&id=`blog`!]
      Showing [+blog_start+] - [+blog_stop+] of [+blog_total+] Articles
      
      [+blog_previous+] [+blog_pages+] [+blog_next+]
      
      [[Reflect? &dittoSnippetParameters=`startID:2` &id=`blog` &groupByYears=`0` &showItems=0` &tplMonth=`reflect_month_tpl`]]
      
        • 31865
        • 8 Posts
        Hi, I tried the above mentioned code (and also some variations with the id parameters specified in both the Ditto and the Reflect calls but I get the following error.

        "The Ditto object is invalid. Please check it. "

        Any ways to debug this.
          • 36592
          • 970 Posts
          How about adding &getDocuments=`1` to Reflect snippet call ?
          And changing it to non-cached form [!...!] ?
            • 31865
            • 8 Posts
            Thanks, that resolved my issue.

            [[Ditto? &id=`blog` &startID=`2` &summarize=`5` &tpl=`flex5_blog_summary` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]] 
            Showing [+blog_start+] - [+blog_stop+] of [+blog_total+] Articles 
            
            [+blog_previous+]  [+blog_pages+]  [+blog_next+] 


            The reflect call is

            [[Reflect? &id=`archive` &dittoSnippetParameters=`startID:2` &groupByYears=`0` &showItems=0` &tplMonth=`reflect_month_tpl` &getDocuments=`1`]]