Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • arvind 18 posts 38 karma points
    Nov 17, 2011 @ 12:09
    arvind
    0

    Tracing latest published page in Umbraco

    Hi all,

     

    I am using Umbraco 4.7.1 and want to display the name and content of latest published/edited page on a specific page.

    Is there any way to do it using packages or without packages ?


    Regards,

    Arvind

  • Rich Green 2246 posts 4008 karma points
    Nov 17, 2011 @ 12:49
    Rich Green
    0

    Hi Arvind,

    Umbraco has a control which does this (latest edits tab) I wasn't sure how it was done so I had a look at the source code.

    Quite surprised to see they read the latest edits from the log table.

    umbraco.BusinessLogic.Log.GetLogReader(User.GetCurrent(), umbraco.BusinessLogic.LogTypes.Save, DateTime.Now.Subtract(new System.TimeSpan(7,0,0,0,0)));
     
    If you're dealing with published content then you could achieve this with XSLT / Razor, I don't have the solution but hopefully someone will come and help soon.

    Rich

     
Please Sign in or register to post replies

Write your reply to:

Draft