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

    I cannot make this automate archive working... I did everything as described in wordpress-style tutorial and I follow steps from here:
    http://ditto.modxcms.com/tutorials/wordpress-style-archives.html,

    Istead of archive list I have info: The Ditto object is invalid. Please check it.

    I don’t know if i am doing this right... I have page called Blog (2) where I have summary of my posts published. In this folder I keep all posts. I created new document called Archive (52) where I put this call:
    <h2>[+wp_month+] [+wp_day+] [+wp_year+]</h2> [!Ditto? &id=`wp` &extenders=`dateFilter` &parents=`2`!] 


    In my template I put on a sidebar this call:
    [!Reflect? config=`wordpress` &targetID=`52` &getDocuments=`1` &dittoSnippetParameters=`parents:2` &id=`wp`!]


    It is not working, what I’m doing wrong? Do I have to specify somwhere this &id=wp? do I have to specify something like: config=`wordpress` ? I don’t understand where these come from, I took them from tutorial.
    also, do I have to create new documents for each month? or is it automaticly created? I’m lost.....

    I have also problem with ’next’ link (and ’previus’ or a number of page link). Posts after exceeding limit are moved somewhere but if you click on Next button or number of page:2 it doesn’t show anything. Is there anything to do to make it works?

    Thanks
      • 36592
      • 970 Posts
      [!Reflect? config=`wordpress` &targetID=`52` &getDocuments=`1` &dittoSnippetParameters=`parents:2` &id=`wp`!]

      You should put ’&’ in front of config parameter like...
      &config=`wordpress`
        • 9436
        • 26 Posts
        O Gosh! Thank you so much! I was struggling with it so long shocked... I took it from a tutorial already with this mistake...


          • 25663 MODX Staff
          • 12,272 Posts
          If you remove the space in front of the first parameter it works just fine without an ampersand.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me