Help - Search - Members - Calendar
Full Version: Entry Number Graphics
Movable Type Community Forum > Additional Resources > Tips and Tricks
sintax
Well, since I can't get that "only show the current week" calendar display thing to work I have gone a different route.

I have the following code which is very commong:

CODE
<MTEntries lastn="7">
<a href="<$MTEntryPermalink archive_type="Individual"$>">
<img src="images/layout/recent.gif" alt="<$MTEntryTitle$>" border="0">
</a>
</MTEntries>


Which builds a row of 7 instances of the graphic "recent.gif"...

What I would LIKE to do is instead of re-using the same graphic for each of the seven instances, use 7 different graphics.

CODE
recent-1.gif
recent-2.gif
recent-3.gif


... and so on

I saw a plug in for MTGrid but I don't want to create a table or anything like that... just a simple row of < img > tags.

Thanks!
kristine
Do the filenames need to be 1-7 or should they match the date?

You could use an MTEntryDate tag and format it to show the name of the day being displayed.

Depending on how you are trying to make this look, you may want the MTArchiveList; what you currently have will show the most recent 7 posts, not 7 days of posts. And 7 days of posts may not be what you want either.

Kristine
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.