For SharePoint on Office 365, is there a way to show a "Page Last Updated MM/DD/YYY" chunk of text, where the date is programmatically generated?
1 Answer
Are you using Publishing pages or regular Web-Part/ Wiki pages?
For publishing is extremely easy by using the Publishing Fields in your page Layout targeting Version property and i use something like (just target Modified instead - however be aware that you have no control over the Date format - reason for which I've created a Calculated Column to display date nicely!):
<SharePoint:FormattedString FormatText="Last Review: {0} - Revision: {1}" runat="server"> <SharePoint:CalculatedField id="publishedFieldCtrl" ControlMode="Display" FieldName="KCArticlePublishedDateForForms" runat="server" DisableInputFieldLabel="true"/>
<SharePoint:TextField FieldName="Version" runat="server" DisableInputFieldLabel="true" ControlMode="Display"></SharePoint:TextField></SharePoint:FormattedString>
For web part pages - directly in the page you would need to use may the so called "ProjectProperty" that comes with every list item (which includes Pages, Document, etc.) as such (Marc A. has detailed these http://sympmarc.com/2009/02/26/10065/), however i must confess i haven't used it for Version.
<SharePoint:ProjectProperty Property="Title" runat="server"/>
or
<SharePoint:ListProperty Property="LinkTitle" runat="server"/>: <SharePoint:ListItemProperty Property="Title" MaxLength=40 runat="server"/>