We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10573
    • 101 Posts
    I’m using the MostRecent snippet in 0.9.6 RC1.

    How do I get it to show the most recently updated page.
    Right now, it shows the most recent document that was created.

    Here is the call:
    [[MostRecent?Lin_root=0]]


    I searched the forums with not much luck.

    Thanks!
      • 10573
      • 101 Posts
      I like how the admin has a Recent Documents tab that displays the last documents you created or edited.

      How can we do this with a snippet for the end user? The MostRecent snippet only shows what is new from creation date, not edit.
        • 18397
        • 3,250 Posts
        Change:

        $recentSql .= "ORDER BY IF(pub_date>0, pub_date, createdon) ";
        

        to
        $recentSql .= "ORDER BY editedon ";
        


        Or you could use Ditto 2 and do &parents=`0` &depth=`# of levels deep to look` &sortBy=`editedon`