MNPages Test Oven

mmmmm.... now that's good website

Last Modified

The Last Modified Snippet allows you to include text stating when the page was last modified, and by whom. The module/snippet you download from Website Baker displays the date, time and who last modified the page.


WB Snippet Last Update Info
Page last updated: 2007.06.29, 20:07 by rportinga

The GetLastUpdate snippet found on the WB Forums allows you to enter a page id number. This means you can list the update information for a page other than the one you are currently viewing. If you do not pass a page id, it defaults to the current page.

This examples shows the date the last time the Downloads Page was updated.

This Page Last Modified: July 25, 2007

I have made some tweeks to add two flags. If the first flag is set to true it displays the date and time, otherwise it displays just the date. If the second flag is set to true you also get who last modified the page. See the examples below.

called with getWhenWho(1,1)
last updated: 29.06.2007, 20:07 by rportinga

called with getWhenWho(0,1)
last updated: June 29, 2007 by rportinga

called with getWhenWho(0,0)
last updated: June 29, 2007

This getWhenWho snippet can be downloaded and placed in the code section on any page or directly into a template.