tips and tricks for movable type

MTEntries lastn with offset
December 27, 2002

Here's a code snippet you can use to display links to the next N entries in your blog (as I use it in my sidebar for "Other Recent Entries"):

<MTEntries lastn="10" offset="15">
<a href="<$MTEntryLink$>"><$MTEntryTitle$></a><br>
</MTEntries>

Since I display the last 15 entries in my blog, I wanted to display the next 10 in my sidebar (i.e., entries 16 to 25). Combining lastn with offset is what makes it work. Change 10 and 15 to meet your needs.

Comments

Awesome tip, girlie! Thanks!

by Kevin | 01.11.03 10:09 AM

you are so smart! that's been driving me crazy!

by tanya | 03.27.03 01:41 PM

Thank you girl. Now its working fine. Hugs, from Brazil.

by Lu | 07.20.04 05:07 PM

Very cool! I put at the very bottom of my page. http://garylapointe.com/blog/

Previously at the bottom I had it just pick the last few months if they wanted more, this way I have both! :)

Thanks Girlie.

by Gary LaPointe [TypeKey Profile Page] | 08.09.04 10:09 PM

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: 6
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/125)

» The girlie really does matter
Excerpt: Here's another MT tip that makes perfect sense from the girlie matters. Having links to a blog's ten most recent entries in a sidebar has never made much sense to me. If you're scrolling through the sidebar, you're scrolling through the site...where th...
Weblog: Ain't too proud to blog
Tracked: 01.11.03 02:25 AM

» ctrl+c ctrl+v
Excerpt: i've been a happy little copy and paster the last couple of days. i finally got around to installing the
Weblog: TummyMonsters
Tracked: 01.13.03 10:48 AM

» Something's different
Excerpt: I did a few tweaks around the site tonight. I added the last 50 keyword referrers script to the stats
Weblog: Daisyhead
Tracked: 01.26.03 08:38 PM

» Odds and ends, part 2
Excerpt: Since I added the collapsible/expanding entries code yesterday, that means more content to load up when people come to my
Weblog: Unix Gal
Tracked: 02.02.03 05:26 PM

» Recent Entries with Offset
Excerpt: Posted on The Girlie Matters, this tip is my newest implementation: MTEntries lastn with offset, a tip to display a certain number of entries on the main page (in my case, 14) and the preceding entries (again, 14) listed in
Weblog: Simplicity and Chaos
Tracked: 02.22.03 07:36 AM

» Lots of Blog Changes
Excerpt: Nothing super significant: I'm using the columnize plug-in to save some space for my archives and categories, I'm using the more javascript to make the extended entry accessible on the main page, hmm... I did a third thing too, something I found on Gir...
Weblog: If I Blog in the Forest and No One Reads It, Did I Make Any Noise?!?
Tracked: 08.10.04 08:38 PM