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

    I’m trying to display archive with Reflect and Ditto (1.1 beta 2) on 0.9.5 RC2 but can’t figure out how to do huh

    I call Ditto snippet :
    [[Ditto? &startID=`[*id*]` &tpl=`MenuBlogDossier`  &displayArchive=`1` &sortBy=`pub_date` &archiveDateType=`pub_date`]]

    Then, juste below [[Reflect? ]]

    and then ? Don’t have any idea to display archive lol Anyone can help ? Thanks wink
      • 11975
      • 2,542 Posts
      Hi perrine,

      Could you try with the following call
      [[Reflect? &placeholder=`ditto_object`&full=`1` ]]

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 18436
        • 135 Posts
        Here’s my call:

        [!ditto?startID=2&placeholder=`ditto_object`&multiLevel=1&descendantDepth=0&hideFolders=1&sortBy=`createdon`&sortDir=`DESC`&dateFormat=`%d %B %Y`&summarize=0!]
        <div class="content" id="reflect_archivelist">[!reflect!]</div>


        Output seen here: http://www.swellguys.co.za/news/archive.html
          • 23050
          • 1,842 Posts
          Thank you Marschant, it’s ok now... In fact, it didn’t work because of &startID=`[*id*]`

          By default, currend id is called, so it’s not necessary to specify it again wink

          Ps : Nice website ! wink
            • 8471
            • 333 Posts
            Hi, I use this call:
            [!Ditto? &startID=`14`  &paginate=`1` &dateformat=`%d-%b-%y` &alwaysshow=`1` &depth=`2` &displayArchive =`1`!] 
            [[Reflect]]

            But I can see only my news (not old news) and this : "Bad Ditto object"
              Sorry for my bad English grin
              • 23050
              • 1,842 Posts
              Hi Edipo,
              Is this problem the same you talked in PHx thread ? If so , try to cache Ditto call
                • 8471
                • 333 Posts
                Thanks Perrine for your help.
                If I call ditto in cache I receive this error:
                Fatal error: Call to undefined method functions::buildURL() in C:\sito\manager\includes\document.parser.class.inc.php(705) : eval()'d code on line 135
                  Sorry for my bad English grin
                  • 11975
                  • 2,542 Posts
                  This is a known issue
                  The fix is here ==> http://modxcms.com/forums/index.php/topic,8988.msg64225.html#msg64225

                  :-)
                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 8471
                    • 333 Posts
                    Thanks! It solve... how can i show only the archives and not also the news?
                      Sorry for my bad English grin
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      Ditto that last question... shocked
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org