We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6745
    • 45 Posts
    I’m working on a website for myself and i have my homepage.

    on this homepage i want to load the content of 3 documents into that page.
    but i want to only load the 3 latest documents i added in to my website.

    is there an easy way to get this done?
    i think not but if anyone could help me with it, it would be nice.

    greetz,
    davincio
      • 7231
      • 4,205 Posts
      Use Ditto for this. The nettuts tutorial has a description of how to do this. Basically set the parent of the nesw section, tell Ditto to diplay 3 articles and sort by publish date descending so that you get the most recent:

      [[Ditto? &parents=`2` &display=`3` &orderBy=`publishedon DESC`]]
        [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't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 6745
        • 45 Posts
        i’ll sure take a look at it,
        and offcourse try it out laugh

        greetz,
        davincio