1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Getting page publishing dates

Getting page publishing dates

4 posts, 1 answered
  1. olav
    olav avatar
    76 posts
    Registered:
    22 Jan 2007
    27 Nov 2009
    Link to this post
    Hi,

    Anybody know a rather easy way to get properties like "page first published date" and "page most recently published date"?

    I have displayed properties like PageCreated and PageModified in user controls, typically for dropping in page footers. This is quite helpful, but I would like to go a bit further and have the mentioned two fields, being most interesting for my purpose.

    I have realized that my obsession with timestamping goes towards both pages and blogposts. For example, certain pages with user forms, and kb-articles, where precise updating information could be appealing to the user.

    I understand that custom page properties should be straightforward in version 4, and that blogposts already can have custom fields. Entering dates manually in custom edit fields could do the trick. I could easily wait for v4 (well, don't know about a date, but I guess I kind of trust you Sitefinity guys!), and I have already tested external template modification for blogs. Really nice!

    Getting "page first published date" straight from a property (or the database) would be best, both for the editing guys, and for the sake of greater consistency (as compared with a "required" field).
    Similar for "page most recently published date", but in this case the perfect behavior would be some kind of checkbox in the editing UI, "Leave last publishing date unchanged". Simply to allow for minor edits that should not count as a document update for the reader.

    Ok, this is asking a bit much. I guess the last bit would be something for a wish-list targeted to the Sitefinity Team.
    Still, has anybody dealt with similar scenarios?
    Any ideas would be great!

    Best,
    Olav
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    27 Nov 2009
    Link to this post
    Hi olav,

    You can find the following post useful. Currently page properties are not supported by Sitefinity.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Answered
  3. olav
    olav avatar
    76 posts
    Registered:
    22 Jan 2007
    27 Nov 2009
    Link to this post
    Thanks, that's definitely useful.

    Finally, moving down the same road, I'd like to request a feature.
    This is probably less than relevant to most users, but still.

    I expect one of our Sitefinity installations to be moved at some point of time, across time zones.
    We have some issues in special cases, relating to stored dates (like DateCreated), without knowledge of the time zone during data entry. Of course, we can add the time difference by script to all (type datetime) sf_PageContentBase.DateCreated at the time of moving.

    But we would love an option to have this database field of the MSSQL2008 type datetimeoffset, triggered by a setting in web.config or similar (probably stating the offset at the same time).

    I expect that we will deal with this by ourselves (again, probably waiting until v4), but built in support in this case would definitely be nice!

    Best,
    Olav
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    29 Nov 2009
    Link to this post
    Hi olav,

    We will consider such implementation for one of the 4.0 releases. Generally the date depends on the WEB, Database server time and CultureInfo.CurrentCulture.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
4 posts, 1 answered