22 Jan 2007
27 Nov 2009
Link to this post
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!