We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11316
    • 81 Posts
    Trying to setup a "wordpress" archive setup.

    Follow the directions from the site and works great. I am trying to pull from 2 categories.

    [!Reflect?config=`wordpress` &targetID=`35` &getDocuments=`1` &dittoSnippetParameters=`parents:29,parents:30` &id=`wp`!]

    [+wp_month+] [+wp_day+] [+wp_year+]

    [!Ditto? &id=`wp` &extenders=`dateFilter` &parents=`29,30`!]

    The strange part: I am getting an "October 2005" with no documents found. I have no documents published at that time either any help would be greatly appreciated.

    Ryan
      • 36592
      • 970 Posts
      I’m not sure this has something to do with your problem, but ...

      &dittoSnippetParameters=`parents:29,parents:30`


      This should be

      &dittoSnippetParameters=`parents:29,30`

        • 11316
        • 81 Posts
        you know what’s even funnier is that I tried parents:29|30 with a pipe and all sorts of combination’s. And thought that I did that one also, but most have forgotten to hit save.

        Worked great! I have seen users using &startID - what’s the difference? Specifically trying to pull from different areas.

        Thank you!
          • 36592
          • 970 Posts
          Quote from: Ryan at May 14, 2009, 11:52 PM

          I have seen users using &startID - what’s the difference?
          There’s no difference. &startID is replaced by &parents.
            • 11316
            • 81 Posts
            didnt know if you could help me out with another reflect question. I wanted to make a tpl parameter so that I can customize the look, not fond of the default. I tried tplContainer but it didn’t do anything. thanks ryan
              • 36592
              • 970 Posts
              Quote from: Ryan at May 16, 2009, 11:21 AM

              didnt know if you could help me out with another reflect question. I wanted to make a tpl parameter so that I can customize the look, not fond of the default. I tried tplContainer but it didn’t do anything. thanks ryan
              About Reflect parameters, see here -> http://ditto.modxcms.com/files/snippet-reflect-php.html
              I think you’d use &tplMonth or something...
                • 11316
                • 81 Posts
                thanks for the directions, after thinking about it. It finally popped in my head. I needed to modify the ditto call not the reflect.
                That way I had full control over how the archives display. Thank you again for the help.

                [+wp_month+] [+wp_day+] [+wp_year+]
                [!Ditto? &id=`wp` &extenders=`dateFilter` &parents=`29,30` | ADDED &tpl=`blog_tpl` &dateFormat=`%b %d, %Y`!]