This Site Last Updated...

By mattdmmattdm

Description

Visitors tend to prefer sites with recent updates to those created in 1997 and never updated. This solution gives you a quick line to put at the top of your site which quickly shows that this site is active.

Code

[[div style="font-size: x-small; whitespace:no-wrap; float: right"]]
[[module ListPages category="*" tags="-_system,-_redirect,-_include"  limit="1" order="dateEditedDesc" separate="no"]]
%%date_edited|This site [[[system:recent-changes|updated]]] %O ago%%.
[[/module]]
[[/div]]

Note that the "div" lines simply make the text small and float at the right. If you don't want that, leave out the div, or style differently.

In action

Pentax Flash Guide

Or, right here:

10 Nov 2016 22:05.


Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by mattdm


Rate this solution

If you think this solution is useful — rate it up!

rating: +12+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License