March 28, 2002
Search Link Shortcuts in Moveable Type
I often link certain keyword in my blog posts to Google or dictionary searches, so the idea occured to me to make a few shortcut buttons to make this easier in Moveable Type. These MT shortcuts work just like the standard HTML editing shortcuts, except they take the highlighted word or words and create a link to search Google, Amazon or Dictionary.com.
Screenshot:
http://www.scottandrew.com/pub/mt-powerlinks.gif
Easily installed:
1. Download and unzip this file:
http://www.scottandrew.com/pub/mt-powerlinks.zip
2. Upload the 3 button images into the /images/ directory of your MT installation.
3. Go into /tmpl/cms/ and make a backup copy of your original edit_entry.tmpl file just in case.
4. Upload the edit_entry.tmpl from the zip package into /tmpl/cms/
That’s it! Now, to easily make a search link, highlight the word or words in your post and click the appropriate button. The selected words become search terms.
BTW, for Amazon searches, there’s an Associate code that’s added to the search URL. By default, the code is “rhumba-20″ (Moveable Type) but you can change this easily by opening up edit_entry.tmpl in a text editor and changing the value of the “amazon_tag” JavaScript variable, near the top of the page:
var amazon_tag = 'rhumba-20';
Sorry, there’s no keyboard shortcuts for these yet.










