We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31191
    • 39 Posts
    This is on Modx v. 0.9.6.1 B

    I tried to use the Evolution 1.04 as an example to grab sample content from for setting up Archives wordpress style in the sidebar. That trash doesn’t work. The archives links on the blog page don’t work. I’ve red silly amounts of posts with lots of slightly varying ways to set this up. Here’s what I have.

    Blog page with sidebar archives. id=14 This is working and displays and links to the archive page correctly.

    [!Reflect? &config=`wordpress` &targetID=`53` &getDocuments=`1` &dittoSnippetParameters=`parents:14` &id=`wp` &extenders=`dateFilter`!]


    URL output =
    http://domain.com/blog-archives.html?wp_month=1&wp_year=2010&wp_day=false&wp_start=0


    Archives page (id=53)
    <h2>[+wp_month+] [+wp_day+] [+wp_year+]</h2> 
    [!Ditto? &id=`ditto` &extenders=`dateFilter` &parents=`14`!] <br />
    


    The h2 doesn’t even show on the page. This page loads, but it only displays the 3 newest posts, not the posts for the month I clicked in the sidebar of archives. No matter what link I click, it shows the archives page with 3 newest posts.

    What have I done wrong to deserve this smiley
      perusing forums is where my comp sci degree got me.
      • 12379
      • 460 Posts
      Try: [!Ditto? &id=`wp` &extenders=`dateFilter` &parents=`14`!]
        Mostly harmless.
        • 31191
        • 39 Posts
        Quote from: hotdiggity at Jun 13, 2010, 06:05 PM

        Try: [!Ditto? &id=`wp` &extenders=`dateFilter` &parents=`14`!]

        That didn’t do it. I game the same result. Is there anywhere were the basic setup for this is posted? Or can someone post their working code?
          perusing forums is where my comp sci degree got me.
          • 12379
          • 460 Posts
          The only really difference between your code and my working code is adding &dateSource=`createdon` as a ditto parameter (default should be createdon) anyway, and caching:

          Sidebars:
          [!Reflect? &id=`article` &targetID=`39` &config=`wordpress` &getDocuments=`1` &dittoSnippetParameters=`tags:|startID:2|depth:3|hideFolders:1|seeThruUnpub:1|filter:id,21,2|filter:id,16,2|filter:id,34,2|filter:id,39,2` &monthSortDir=`DESC` &tplContainer=`reflect_archive_container_tpl`!]

          Archive page (39):
          <h2 class="archive">Archive: [+article_month+] [+article_day+] [+article_year+]</h2>
          [[Ditto? &startID=`2` &id=`article` &sortBy=`menuindex` &extenders=`dateFilter` &display=`6` &dateSource=`createdon` &dateFormat=`%A, %B %d %Y at %l:%M %p` &tpl=`blog_post_summary_tpl` &paginate=`1` &paginateAlwaysShowLinks=`0` &sortDir=`DESC` &filter=`id,16,2|id,21,2|id,34,2|id,38,2`]]

          ...where id=2 is the blog parent. "&startID" parameter is deprecated now I think.
            Mostly harmless.
            • 1611
            • 591 Posts
            I’m also can’t get it work on modx 1.0.3. My old configuration from 0.9.6.3 doesn’t work.
            Are there some changes were made in Ditto/Reflect?
              • 12379
              • 460 Posts
              Doubt it. The above works for me in 1.03, even with startID...
                Mostly harmless.
                • 1611
                • 591 Posts
                Is Reflect connects to Ditto’s entry set or it needs its own Ditto requesting documents