Help - Search - Members - Calendar
Full Version: Pic of the day
Movable Type Community Forum > Additional Resources > Tips and Tricks
hjmadigan
Hey all,

I'd like to set up a picture of the day on my blog where I can upload a full-sized picture and a thumbnail, then make an entry with a bit of text. The thumbnail would appear on my front page, and clicking through to it would take you to a page with the full-sized image, my description, and user comments.

I searched these forums for a while, but couldn't find anything. Anyone have any tips or can you point me to examples or instructions for doing something like this? Thanks!

JM
http://www.jmadigan.net
jblayloc
My web site has a photo of the day link on the main page which links to an individual entry archive of the photo.

I use the Entry Body for the full-size photo. The Extended Entry is the caption and any other text I want to put with the photo. The Excerpt is the thumbnail. The category is "Photo of the Day."

On the main index, the code I use to generate the thumbnail and link is:

CODE
<MTEntries category="Photo of the Day" lastn="1">
<a href="<$MTEntryPermalink$>">Photo of the Day<br />
<$MTEntryExcerpt$><br />
<$MTEntryTitle$></a><br />
</MTEntries>


Obviously, I've done alot of customizing of the templates to get them to look like they do, but what I've mentioned above is the framework.
hjmadigan
Excellent, that's pretty much EXACTLY what I'm looking for. Thanks!
hjmadigan
Okay, so I'm messing around with this and it seems to work fine, but one question: How do I keep the Photo of the Day entry from showing up as an entry in my main blog?

Ideally I'd tell MT to exclude anything in the "Photo of the Day" category from the main blog. Can anyone tell me or point me at a resource for doing this?
jblayloc
Try the ExcludeCategories plug-in.
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.