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):
<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:
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
Comments
sweet!!
:) thanks!
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?
This entry was written before I switched my site to PHP.
ah. So you use <? include ("path/file.php");?> now?
Yes, that's what I use now.
Thanks! I used php and it works like a charm!!!
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
I'm sorry... looked around and found you're helpful info here. Thanks a bundle!
-leon
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.
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.
To post code here, you have to convert the < and > to < and >.
The code snippet in step 2 is what is in recent.shtm.