We help IT Professionals succeed at work.

Add last date modified on publishing pages sharepoint

greg007
greg007 asked
on
I am using SharePoint 2013 and I have a publishing page template that I want to show the "last date modified" on each page. Is this possible? Can someone explain if there is out of the box or you need some coding?
Comment
Watch Question

Jamie McAllisterCloud Expert
Most Valuable Expert 2013
Top Expert 2014

Commented:
I've not done this for years, and it could have changed, but in previous versions you did need to code something;

http://the-north.com/sharepoint/post/Building-a-multi-lingual-Last-Modifed-Footer-for-MOSS

However, this would be done via JSOM rather than compiled code these days. I'll see if I can dig up some resources for you.
Jamie McAllisterCloud Expert
Most Valuable Expert 2013
Top Expert 2014

Commented:
Did you try the full REST based source they indicated here;

https://github.com/kpereyra/SharepointWikiFreshIndicator

Author

Commented:
Would you mind giving me detailed instructions about what I should do?
Thank you.

Author

Commented:
I downloaded the HTML file for the "WikiModifiedBy.html" that you sent. I put that in the top level folder in "site assets", which is inside "site contents". What am I supposed to do after that?
Jamie McAllisterCloud Expert
Most Valuable Expert 2013
Top Expert 2014

Commented:
I've tried that code out in a sandbox. It's riddled with issues and doesn't work. I'll try to locate something else for you.

Author

Commented:
Thank you very much.

Author

Commented:
May I ask if you were able to find a working solution?
Cloud Expert
Most Valuable Expert 2013
Top Expert 2014
Commented:
Sorry for the delay getting back to you, a lot of work at the moment...

This is tested and does work;

https://donalconlon.wordpress.com/2013/02/06/adding-the-last-modified-date-on-a-publishing-page/

It's a simple edit to the Page Layout using SharePoint Designer. I had no issues with the date being offset.