Copied to clipboard

Flag this post as spam?

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


  • Jonas Eriksson 930 posts 1825 karma points
    Jan 13, 2011 @ 15:23
    Jonas Eriksson
    0

    How to know the age of a document?

    We intended to use "Latest publish date" to see how old certain articles are on a site. And send an email to editors when articles are too old.

    However sometimes republishing nodes are required after backend changes (and upgrades). I do that as an admin. But that means the age of the content are lost. No big deal really, but I want to know if someone else are looking at document age and has a solution for this date reset on publish.

    Regards

    Jonas

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Jan 13, 2011 @ 15:29
    Tom Fulton
    1

    How about using the created date instead of last published?

    <xsl:value-of select="$currentPage/@createDate"/>

    or

    doc.CreateDateTime

    Or are you looking for more of the age of the "content" within the article and not the article itself?

  • Jonas Eriksson 930 posts 1825 karma points
    Jan 14, 2011 @ 11:32
    Jonas Eriksson
    0

    Ok, yeah, I would like to get "latest publish date by any editor user (!administrator)" really. To be able to send a message to the responsible editor for an article if it's untouched for over a year (for example).

    Hm. So I think I will need to add another property for this "LatestPublishDateByEditor" and set it on publish event.

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jan 14, 2011 @ 12:48
    Aaron Powell
    0

    You can probably get the info out of the umbracoLog table, that is how the Audit/ Rollback feature tracks.

  • Jonas Eriksson 930 posts 1825 karma points
    Jan 14, 2011 @ 12:55
    Jonas Eriksson
    0

    Ah brillant Slace, thanks, you just saved me quite some hours 

    SELECT top 1 Datestamp FROM umbracoLog WHERE NodeId=@NodeId and logHeader ='Publish' AND userId<>0 order by id desc

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jan 14, 2011 @ 12:57
    Matt Brailsford
    1

    Hey Jonas,

    Might be worth checking out the cogworks CogPageReview package which seems to do a similar kind of thing (notifies users to update a page after x days)

    http://our.umbraco.org/projects/backoffice-extensions/cogworks-cogpagereview

    Matt

  • Jonas Eriksson 930 posts 1825 karma points
    Jan 14, 2011 @ 13:02
    Jonas Eriksson
    0

    Hey Matt,

    ah, superb, how did I miss that, great package! Thanks

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies