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

    I am wanting to setup a monthly archive system af all the documents within pageid’10’. At the minute my archive system is showing the months correctly, though they aren’t displaying stories within the correct months. They are all displaying ALL news stories in each month.

    My code I am using in Page id10 is:
    [!Ditto? &parents=`10` &tpl=`news` &display=`4` &paginate=`1` &paginateAlwaysShowLinks=`0` &extenders=`dateFilter` !]]


    And my code within my page id50:
    [[Reflect?config=`wordpress` &targetID=`50` &getDocuments=`1` &dittoSnippetParameters=`startID:10`]]


    I’m probably missing a small piece of code but for the life of me I can’t see. I am fairly new to Modx and its something Im enjoying working with, any support or ideas would be greatly appreciated.

    Thanks
      • 33337
      • 3,975 Posts
      &dittoSnippetParameters=`startID:10` -> &dittoSnippetParameters=`parents:10`

      maybe?

      disclaimer: Reflect always give me headaches tongue
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 4045
        • 11 Posts
        I gave that a try but still no luck!!

        Its giving me a few headaches right now! Ive read a few other topics that seem similar but my reults are changing.

        Im guessing its something simple but I cant seem to figure it all out, yet!

        One thing I thought maybe that could be causing a problem is that the archive page (id=50) is within the news (id=10) folder. Could the fact that it is within the container be the issue?

          • 4045
          • 11 Posts
          Had a play around with a few things, managed to get it up and running.

          Cheers for the support Zi.

          Thanks,
          Bren
            • 33337
            • 3,975 Posts
            Quote from: bren at Aug 26, 2009, 08:38 AM

            Had a play around with a few things, managed to get it up and running.

            Cheers for the support Zi.

            Thanks,
            Bren
            Would be cool if you could share your final calls with us, and if possible, write up few lines about what fixed the issue.

            Thanks smiley
              Zaigham R - MODX Professional | Skype | Email | Twitter

              Digging the interwebs for #MODX gems and bringing it to you. modx.link
              • 27498
              • 7 Posts
              i have a similar problem how did you fix it?
                • 30593
                • 119 Posts
                +1
                i have a similar problem how did you fix it?
                  • 1561
                  • 22 Posts
                  Hi everyone!

                  Up for this. I’m also interested of how to solve this issue. Thanks in advance.
                    An aspiring web designer & front-end web developer who is very much interested on the modern web.

                    www.andrewabogado.com
                    • 22340
                    • 3 Posts
                    I am having a similar problem, I am new to modx and for the life of me cannot get the blog to run. I tried "word press" style archives but they do not work. I need one main page as the "blog" with archives on the right nav bar. Right now, clicking any archives takes the reader to the full blog. Any ideas????

                    http://allaboutrivieramaya.com/modx/blog
                      • 14352
                      • 9 Posts
                      Although ive made numerous MODx sites and havent any problems with creating anything I want, I am now stuck with Reflect.
                      Trying for hours, reading every post, noone seems to have clear answers, IF there are answers at all.

                      And ppl not sharing their results doesnt help either sad

                      meh, might just start a new post
                      better than ranting here wink

                      [edit]
                      Right after this rant I found the solution (finally) for what seemed to be the problem.

                      I had multiple [[ditto]] calls on my page. Adding an &id=’’ parameter to my primary [[ditto]] call broke my pagination.
                      So I struggled with getting working links, cus i missed the &id=’’.
                      In this post I found that having multiple [[ditto]] calls requires one to update the placeholders (e.g. for the pagination) to the format [+id_placeholder+] (e.g. [+id_previous+] [+id_pages+] [+id_next+].
                      After doing that, ive succesfully added &id=’’ parameter to my primary [[ditto]] call and got reflect to work.


                      Setup
                      blog container (id=1)
                      - page 1
                      - page 2
                      - page 3

                      Ditto call (inside id 1)
                      [[Ditto?
                      &id=`blog`
                      &parents=`1` 
                      &display=`2` 
                      &removeChunk=`reacties` 
                      &tpl=`tpl_blog_frontpage` 
                      &extenders=`summary,dateFilter` 
                      &paginate=`1` 
                      &paginateAlwaysShowLinks=`0` 
                      &tplPaginateCurrentPage=`currentPageSplitter` 
                      &tplPaginatePage=`pageSplitter` 
                      &truncLen=`1000` 
                      &dateFormat=`%d-%m-%Y` 
                      &startID=`1`
                      ]]


                      reflect call (inside the template wich also has one more [[ditto]] call and wich is used for id 1)
                      [[Reflect? &config=`wordpress` &id=`blog` &targetID=`1` &param=`parents:1` &getDocuments=`1` &tplContainer=`reflect_container_tpl`]]


                      not the solution to the problem above, but might help out some ppl