| 1 | OnThisDay |
|---|
| 2 | A Plugin for Movable Type |
|---|
| 3 | |
|---|
| 4 | Release 2.0 |
|---|
| 5 | August 25, 2007 |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | From Brad Choate |
|---|
| 9 | http://www.bradchoate.com/ |
|---|
| 10 | Copyright (c) 2002-2007, Brad Choate |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | Installation: |
|---|
| 14 | |
|---|
| 15 | To install, place the following files in your Movable Type plugins |
|---|
| 16 | directory: |
|---|
| 17 | |
|---|
| 18 | (mt home)/plugins/OnThisDay/OnThisDay.pl |
|---|
| 19 | (mt home)/plugins/OnThisDay/lib/MTOnThisDay/Plugin.pm |
|---|
| 20 | |
|---|
| 21 | NOTE: This plugin does not support dynamic publishing yet. |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | Tags made available through this plugin: |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | <MTOnThisDay> |
|---|
| 28 | |
|---|
| 29 | This Movable Type plugin allows you to produce a "On This Day" list |
|---|
| 30 | of all the blog entries that share the same day and month of the entry |
|---|
| 31 | it's published for or the current day and month if published outside |
|---|
| 32 | of an entry. |
|---|
| 33 | |
|---|
| 34 | If that didn't make sense, maybe this will: |
|---|
| 35 | |
|---|
| 36 | <MTOnThisDay> |
|---|
| 37 | <MTDateHeader> |
|---|
| 38 | <a href="<$MTEntryLink archive_type="Daily"$>"> |
|---|
| 39 | <$MTEntryDate format="%Y"$> |
|---|
| 40 | </a> |
|---|
| 41 | </MTDateHeader> |
|---|
| 42 | </MTOnThisDay> |
|---|
| 43 | |
|---|
| 44 | The above construct will list all the years that have blogs on the |
|---|
| 45 | current month and day. It will link the year to the daily archive |
|---|
| 46 | page. |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | Here's an example that produces more information on the entries by |
|---|
| 50 | listing their excerpts (and by displaying each entry found instead of |
|---|
| 51 | just the year): |
|---|
| 52 | |
|---|
| 53 | <MTOnThisDay> |
|---|
| 54 | <MTDateHeader> |
|---|
| 55 | <a href="<$MTEntryLink archive_type="Daily"$>"> |
|---|
| 56 | <b><$MTEntryDate format="%Y"$></b>: |
|---|
| 57 | </a><br /> |
|---|
| 58 | </MTDateHeader> |
|---|
| 59 | <div><$MTEntryExcerpt$></div> |
|---|
| 60 | </MTOnThisDay> |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | You can use any of the tags you can normally use within the <MTEntries> |
|---|
| 64 | container tag. |
|---|
| 65 | |
|---|
| 66 | You can also use the <MTOnThisDay> tag on your individual archive page |
|---|
| 67 | to list for those entries any other entries that have the same creation |
|---|
| 68 | month and day. |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | The latest version of this plugin can be found here: |
|---|
| 72 | |
|---|
| 73 | http://code.sixapart.com/svn/mtplugins/trunk/OnThisDay |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | Brad Choate |
|---|
| 77 | August 25, 2007 |
|---|
| 78 | |
|---|
| 79 | |
|---|