How Many Days Does Your Wiki Exist

Posted by ErichSteinboeck on 19 Jan 2008 15:00, last edited by James Kanjo on 09 May 2010 16:29

Tags:

rating: +5+x

NDP IB Admin has reported a very nice way to display the age of a Wiki.

Step by Step

Embed the following code in your Wiki …

[[module ListPages limit="1" separate="false" order="dateCreatedAsc" categories="admin,nav,search,system"]]
This wiki is %%date|%O old.%%
[[/module]]

… to display this:

This wiki is 01 Aug 2006 01:35

How Does This Work?

It finds the single oldest page of a Wiki and displays this page's age. Since the initial pages of a Wiki are all created at the Wiki creation time, it also displays the Wiki's age.

For better performance, we restrict the ListPages search to categories admin, nav, search, and system only, since it is known that the initial pages of a Wiki are created in the those categories.

Author

ErichSteinboeckErichSteinboeck. Please visit his/her userPage.

NDP IB AdminNDP IB Admin. Please visit his/her userPage.


Related articles

Comments

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.