We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7231
    • 4,205 Posts
    You would need a Ditto call and a Reflect call, one for each instance that you want to output.

    To display the results in the ditto call you need to use the id parameter to identify the ditto call to use for the results. However the results do not need to be on the same page, in which case you need to use the targetID parameter.

    You could have a results page like this:
    <h2>[+wp_month+] [+wp_day+] [+wp_year+]</h2>
    [[Ditto? &id=`wp` &extenders=`dateFilter` &dateSource=`pub_date` &parents=`20` &dateSource=`pub_date` &dateFormat=`%B %d, %Y`&tpl=`displayNews` &tplLast=`displayNewsLast` ]] 


    and a Reflect call on the same page like this:
    [!Reflect? &config=`wordpress` &targetID=`246` &id=`wp`  &dittoSnippetParameters=`parents:20` &getDocuments=`1` &tplMonth=`tplArchive` &tplContainer=`mediaArchive` &dateSource=`pub_date` &dateFormat=`%B  %d,  %Y` &groupByYears=`1` &monthSortDir=`DESC`!]


    Note that this is from a site using the 2.0 version, I have not used the new 2.1 release together with Reflect so there may be some changes. The [+wp_month+] placeholders are set by reflect’s as part of the wp config.
      [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

      Something is happening here, but you don&#39;t know what it is.
      Do you, Mr. Jones? - [bob dylan]
      • 19688
      • 21 Posts
      I finaly managed to get some ideas about the basic usage of ditto and reflect... Thanks.