Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question
add comment

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"/>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.