tips and tricks for movable type

recent entries with includes
September 18, 2002

Just thought I'd document how I display the five most recent entries from my journal on the sidebar of my blog using MT and Server Side Includes.

1. I created a new Index Template in my journal blog called Recent SSI and set the output file to ssi/recent.shtm (ssi being the directory where I keep all the various include files I use on my journal).

2. I used this code in the template (barebones example):

<MTEntries lastn="5" sort_order="descend">
<a href="<MTEntryLink>"><MTEntryTitle></a><br />
</MTEntries>

3. In the Main Index Template for my blog, I used SSI to include the recent entries file:

<!--#include virtual="/journal/ssi/recent.shtm"-->

Comments

sweet!!

:) thanks!

by pita | 04.14.03 09:09 PM

is there any reason why you use ssi instead of php for the includes? cos all your pages are php so why you use ssi as well?

by abby | 07.23.03 06:27 AM

This entry was written before I switched my site to PHP.

by girlie | 07.23.03 08:03 AM

ah. So you use <? include ("path/file.php");?> now?

by abby | 07.23.03 08:09 AM

Yes, that's what I use now.

by girlie | 07.23.03 04:02 PM

Thanks! I used php and it works like a charm!!!

by Leslie | 09.04.03 03:23 PM

looking at this code, it doesn't seem to be the same as what you are doing in your left column? i really like how you have it on your site:

Author: "Comment stuff goes in here..." [entrylink]

Can you show me how that code is written for MT?

TIA!
-leon

by leon | 10.07.03 02:48 PM

I'm sorry... looked around and found you're helpful info here. Thanks a bundle!
-leon

by leon | 10.07.03 03:09 PM

1. I created a new Index Template in my journal blog called Recent SSI and set the output file to ssi/recent.shtm (ssi being the directory where I keep all the various include files I use on my journal).

Unfortunately, I don't understand this bit.
Do I create a new index template within MT?
What do you mean by set output file?

What is inside recent.shtm then?

Sorry, all this is really new to me.

by Karen | 10.16.03 10:05 AM

I managed to figure it out and it's working fine.

I used it to show recently commented threads instead. But I still don't know how to post the code here.

by Karen | 10.17.03 10:39 PM

To post code here, you have to convert the < and > to &lt; and &gt;.

The code snippet in step 2 is what is in recent.shtm.

by girlie | 10.18.03 10:57 AM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 1
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/81)

» Comments in gutters
Excerpt: CLONMEL -- I am burrowing into Movable Type and trying to sort out my gutter content. Although it might make more sense to follow some kind of logical tutorial, I'm entertained by learning through random hyperlink. Thanks to Shelley, I've
Weblog: IrishEyes
Tracked: 08.22.03 09:52 AM