Adding content previews to MT Main Index

I’ve got a 30-second improvement to the Main Index template for MovableType. In the Recent Entries section on the right-hand column, I have added HTML title=”…” attibutes so you can get a sneak preview of the content before you click.

I simply changed this:


<a

href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br />

to this:


<a

title="[<$MTEntryDate format="%x"$>] <$MTEntryExcerpt$>"

href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br />

If you’ve got a modern web browser, simply hover over the links and the first few words of the entry will appear in a tooltip.

1 thought on “Adding content previews to MT Main Index

Comments are closed.