We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12379
    • 460 Posts
    I’ve set up Reflect archives in the sidebar of a blog which works fine with the all blog posts under the main page (24).

    However, when I move the blog posts into sub directories the Reflect archive only displays one month, being May 2009, even though the Ditto call (on 24) still displays the same Ditto post summaries. Seems all the docs need to be in the same top level directory for the archives to display the full range of months:

    MAIN PAGE ID 23
    [!Ditto? &startID=`23` &id=`ditto` &depth=`2` &summarize=`12` &hideFolders=`1` &seeThruUnpub='1' &dateSource=`pub_date` &showPublishedOnly='1' &tpl=`blog_summary` &dateFormat=`%A, %B %d %Y  at %l:%M %p` &sortBy=`pub_date` &sortDir=`DESC` &extenders=`dateFilter`&filter=`id,224,2`!]


    ARCHIVE PAGE ID 224
    [!Ditto?startID=`23` &depth=`2` &hideFolders=`1` &seeThruUnpub='1' &tpl=`blog_summary` &dateSource=`pub_date` &id=`ditto` &dateFormat=`%A, %B %d %Y  at %l:%M %p` &extenders=`dateFilter`!]


    SIDEBAR
    [!Reflect?config=`wordpress` &targetID=`224` &id=`ditto` &getDocuments=`1` &dateSource=`pub_date` &dittoSnippetParameters=`startID:23|sortBy:pub_date` &monthSortDir=`DESC` &tplMonth=`month` &tplMonthInner=`month_inner`!]
    


    [...] Blog main (23) (contains main Ditto call)
    [...] 2008 (67) (blogs moved into this folder)
    [...] 2009 (68) (blogs also moved into this folder)
    [ ] Archive (224)
      Mostly harmless.
      • 12379
      • 460 Posts
      I should have had this instead in the sidebar snippet call:

      SIDEBAR
      [!Reflect? &config=`wordpress` &targetID=`224` &id=`ditto` &getDocuments=`1` &dateSource=`pub_date` &dittoSnippetParameters=`parents:23|depth:3` &id=`wp` &monthSortDir=`DESC` &tplMonth=`month` &tplMonthInner=`month_inner`!]


      ARCHIVE 224:
      <h3>[+wp_month+] [+wp_day+] [+wp_year+]</h3>
      [!Ditto? &id=`wp` &parents=`23` &filter=`id,224,2` &dateSource=`createdon` &extenders=`dateFilter` &dateFormat=`%A, %B %d %Y  at %l:%M %p` &tpl=`blog_summary` &depth=`3` &hideFolders=`1` &seeThruUnpub='1' &showInMenuOnly=`1` &sortDir=`DESC`!]


      I’ve also changed mentions of "pub_date" to "createdon" as clients seem to always forget to specify a publication date!
        Mostly harmless.