Nucleus plugin to display TemplateVar which shows the last time an item was updated. Default for new items will be item creation time. Existing items will have no entry in lastupdated and will not show the last updated time, unless edited, and thus the last edited time will be inserted.
| General Plugin info | |
|---|---|
| Author: | Nick Clarkson |
| Current Version: | 0.3 |
| Code: | NP_ItemLastUpdated_code |
| Demo: | None |
| Forum Thread: | Discuss |
The install funstion will test and create the extra 'lastupdated' column in the nucleus_item table
A TemplateVar is used to show when the item is last updated:
<%ItemLastUpdated(itemid)%>
UPGRADING TO NEW INSTALL REQUIRES REMOVING THE OLD VERSION AND INTALLING THE NEW VERSION. THIS WILL LEAVE THE LASTUPDATED COLUMN INTACT. IF YOU WISH TO COMPLETELY REMOVE THE PLUGIN DROP THE LASTUPDATED COLUMN FROM THE ITEM TABLE AFTER REMOVING THE PLUGIN, THEN REMOVE THE TEMPLATEVAR FROM YOUR TEMPLATE(S)
The plugin changes the item table in the database by adding a row lastupdated. This is made during the installation and not reversed during the uninstallation. So there should be an option to remove these additional datas during the uninstallation process. - A good way could be if the row lastupdated would be in an additional plugin table (with two rows itemid and lastupdated) to avoid conflicts with the core or other plugins. (2007-11-13 kg)
NP_ItemLastUpdated version 0.3 works with Nucleus CMS version 3.31 - 2007-11-13 kg