Help - Search - Members - Calendar
Full Version: Adding entries to a different page
Movable Type Community Forum > Additional Resources > Tips and Tricks
WildGunman
I'm not very savvy with Moveable Type yet, so this is probably very easy, but I can't work it out yet. I'm trying to create a main page for my site into which I can put only the single most recent entry into, with a link to the main blog index page in another directory.

I'm just not sure how to publish this.
nammer
Ah, very easy: create a new index template within your blog, with an output file called "mostrecententry.txt" or whatever makes sense to you. Set up the following code in that template - it's really plain on purpose:
CODE
<MTEntries lastn="1">
<MTEntryBody>
</MTEntries>


Save, and rebuild. The next step is to include that page into your main page using PHP or SSI, so each time you publish a new entry, that spot oin your main page updates automatically. For more information about using PHP, see nverting to PHP.

Does that help?

Donna
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.