« showing entries from one of your other blogs | Main | syndicating news or content on your blog »

linking to a particular entry

You may want to draw your visitors' attention to some of your past entries. Some people use an early entry in their blog for an "about me" page. Or you may have put a lot of time and effort into an entry about an important issue that you want people to read. There are lots of reasons to hard-code a link to a specific entry somewhere on your blog index.

You can just create a normal link of course. But what if you change your file extensions or naming scheme? Starting with version 2.6, MT offers a neat solution: the MTLink tag. Use it like this:

<a href="<$MTLink entry_id="xxx"$>">linked text</a>

I'm using this for the "What Islam really says about" links, which are to entries in my blog, to link to an entry in which I discussed subscription services available for Al-Muhajabah's Islamic Blogs, and to link to my "why I oppose war on Iraq" entry.

If you need to display more of the entry than just its URL, you might want to look at the MTEntry plugin.

The MTLink tag also works with your index templates. I use this to create links to the A Quranic Journal, The Clipboard, and veiled4allah indexes as well as to the Master Archive Index and even the Hotlist. Use it like this:

<a href="<$MTLink template="Template Name"$>">linked text</a>

About This Blog

  • Disclaimer: This is a personal site and is not connected with Six Apart, Ltd, the makers of Movable Type
  • Contact me:
  • Readme: What this blog is and is not
  • Reference: Templates for Al-Muhajabah's Islamic Blogs

August 2008

Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

Tips by Type

Tips by Area

Other ways to read this blog

Feed Subscribe to this blog's feed
(default is RSS 2.0, I also have RSS 1.0 and Atom)

Text-only version
Powered by
Movable Type 3.2