Help - Search - Members - Calendar
Full Version: Recent posts in a photolog
Movable Type Community Forum > Additional Resources > Tips and Tricks
Belle
I created a photolog using MT and the tutorial over at blogstyles and it works amazingly well.  Since I don't update the photolog often, but I will add between 4-12 photos when I do update, I was wondering if there was a way to configure the photolog to diplay the last 2 days on which posts were entered, as opposed to the last 2 posts (which would be 2 photos) or the last two days (which would be blank due to the infrequency of my updates).  

It's not absolutely critical that I be able to do this, but I currently have the 25 most recent posts showing, and it cuts off half of my photos from a given day.  Annoying, but that's about all.

http://www.proofchick.com/photolog

Thanks!
urbandyke
The photolog looks really nice. Adorable kitty!!

Have you tried changing the number of days displayed in your preferences under Blog Config (instead of using the lastn entries)? I may be way off here, but I think that should work.
maddy
You're right, Belle. If you change the setting in Config to 2 days, or use , you're page will be blank most of the time. Sorry, urbandyke. sad.gif

Do you have Daily archiving enabled? If you do, you could wrap the entirety of your MTEntries code like this:

CODE
<MTArchiveList archive_type="Daily" lastn="2">
<MTEntries>
...
</MTEntries>
</MTArchiveList>


and that will mean you will always have all of the entries made in the last two days you posted, regardless of how long ago that was. smile.gif
Belle
maddy, you hit the nail on the head.  That little snippet was exactly what I needed, and it works perfectly.  I was worried that I might have troubles because "daily" was not my default archive type and I was concerned that the added tags would affect the other indexes, but I had no trouble at all!

Thank you!
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.