diff --git a/editions/tw5.com/tiddlers/howtos/How to put the last modification date in a banner.tid b/editions/tw5.com/tiddlers/howtos/How to put the last modification date in a banner.tid new file mode 100644 index 000000000..2b78c490a --- /dev/null +++ b/editions/tw5.com/tiddlers/howtos/How to put the last modification date in a banner.tid @@ -0,0 +1,27 @@ +title: How to put the last modification date in a banner +created: 20141020111002211 +modified: 20141020111002211 +tags: Learning +type: text/vnd.tiddlywiki + +Here's how to display the last modification date of a wiki in a banner in the corner of the window: + +# Copy the plugin $:/plugins/tiddlywiki/github-fork-ribbon (labelled "GitHub-style ribbon in pure CSS") to your TiddlyWiki +# Save and reload your wiki +# Create a new tiddler called [[$:/_MyRibbon]] tagged [[$:/tags/PageControls]] and containing:
+ +``` +
+
+<$list filter="[!is[system]!has[draft.of]!sort[modified]limit[1]]"> +<$link> +<$view field="modified" format="date" template="DD mmm YYYY at 0hh:0mm"/> + + +
+
+``` +
+# If required, change the background-color value to your preference +# You can also try changing the positioning class from `right` to `right-bottom` +## To make the banner appear at the top left you'll need to tag the tiddler [[$:/tags/PageTemplate]] instead of [[$:/tags/PageControls]] and then change the position class to `left`