We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23019
    • 27 Posts
    Hi! I’ve been trying for some days mi web page to work with an archive blog but I’ve to have some problem.

    - I’ve 2 parents documents (32 and 40) which contains my blog entries.
    - I’ve 1 document (56) where I call Reflect with:

    [!Reflect?config=`wordpress` &targetID=`59` &id=`wp`&showItems=`0` &groupByYears=`1` &getDocuments=`1` &dateSource=`StartTime`&dittoSnippetParameters=`parents:32,40`!]

    - I’ve another document (59) where I put the filtered documents with:

    [+wp_month+] [+wp_day+] [+wp_year+]
    [!Ditto?&id=`wp`&parents=`32,40`&dateSource=`StartTime`&extenders=`dateFilter`&tpl=`lista_miembros`!]

    Well, the result in the page of reflect call it’s ok, but when I click in the results:

    * enero 2009
    * diciembre 2008
    * noviembre 2008

    The page show no results ("No documents found.").

    I’m using Ditto & Reflect 2.1 version, and Modx 0.9.6.2, can somebody helps me?

    P.D: StartTime is a variable which is not the problem because without it the problem is the same when I delete this "&data source" from both calls.
      • 23019
      • 27 Posts
      Please, I’m sure that some of you can help me with this problem...

      I need to get it running soon to my boss...

      Thanks.
        • 36592
        • 970 Posts
        Try adding &sortBy=`StartTime` to your Ditto call.
          • 3749
          • 24,544 Posts
          I don’t think this is your problem, but in the reflect call, config should be &config.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 23019
            • 27 Posts
            I did both things and still runs badly...

            I think it’s about the http address filtering. I don’t know why, when it changes (beacuse of reflect) to, for example:

            From: http://matina.us.es/www/grupoinv/index.php?id=56

            To: http://matina.us.es/www/grupoinv/index.php?id=59&wp_month=11&wp_year=2008&wp_day=false&wp_start=0

            There’re no results... Any idea?

            Thanks for your help.
              • 36592
              • 970 Posts
              It looks like your Ditto call on document 59 is not working correctly.
              I recommend to use proper snippet call ( For example, you should place space between parameters ) .
              See this article -> http://wiki.modxcms.com/index.php/Snippet_call_anatomy.
                • 23019
                • 27 Posts
                Tried your way and, after changing the template (still don’t know why with a different template it works) it’s almost solved.

                Then only thing it’s that does no show anything in:

                <h2>[+ wp_month +] [+ wp_year +]</h2>

                It’s not logical because if these variables are correctly readed to filter the documents, must be correctly read to show its valor...

                Thanks.
                  • 23019
                  • 27 Posts
                  I don’t know why is not running.

                  I solved it with the parameter &tplFirst (including the code there), but think that could be easier.

                  Thanks.