Help - Search - Members - Calendar
Full Version: Offset Archivelist?
Movable Type Community Forum > Additional Resources > Tips and Tricks
absntr
Hello, and sorry if this has been addressed somewhere. I've looked and searched but couldn't find anything that addresses this. As faras I can tell I can't find this in the manual either.

On a site I run, Gapers' Block (http://www.gapersblock.com), there is a news section on the left side column. It's a weblog that is included on the index.php page. Towards the bottom, after 8 posts, there is a listing of recent posts. I use this to display it:

CODE
<MTArchiveList archive_type="Individual" lastn="12">
• <span class="v9"><$MTEntryDate format="%d %b"$></span>: <a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a><br>
</MTArchiveList></p>


It gives me the last 12 most recent posts. What I really wouldlike to do is display the most recent 12 posts prior to the 8 already on display in full above it. Thus I'dlike to offset it if possible. Is it possible?

I'd imagine the code would look something like this though it doesn't work (unless I'm doing something wrong):

CODE
<MTArchiveList archive_type="Individual" lastn="12" offset="8">
• <span class="v9"><$MTEntryDate format="%d %b"$></span>: <a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a><br>
</MTArchiveList></p>


Any suggestions or help would be much appreciated.
stepan
Any reason why you aren't using MTEntries instead of MTArchiveList? The following should work:
CODE
<MTEntries lastn="12" offset="8">
• <span class="v9"><$MTEntryDate format="%d %b"$></span>:
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br>
</MTEntries>
absntr
Stepan! Thanks so much! It was like Doh! I knew there had to be a way. It's one of those obvious but not so obvious once you get attached to code a certain way kind of things.

Hope that made sense. wink.gif

Thanks again!
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-2010 Invision Power Services, Inc.