Entry Thumbnails
posted by Kevin Wolff on 18 Jan 2007

Last night, while I was coming up with some clever code to allow a user to select the thumbnail for an entry, I ended up introducing a bug which made it so entries do not get assigned a thumbnail by default.  This means that when you upload some pictures to an entry the entry doesn't get a default thumbnail that gets displayed on the entry list pages (like the home page).

I fixed that tonight.  If you happened to create an entry (with photos) today and you're entry doesn't have a thumbnail you can get fix this by opening the entry in the admin tool and clicking the save button again.  All this will do is assign the entry a default thumbnail. 

The feature that I was adding can be found on the entry admin page in the "Options" section.  You can now choose a thumbnail for your entries.  The default setting is "Automatic" which means the system will automatically choose a thumbnail from the photos you've uploaded.  You can also select "No Thumbnail" which will obviously not assign a thumbnail for the entry.  If you haven't saved the entry yet then these are the only two option available.  If you have saved the entry (and photos) you'll be able to choose from the list of photos you've upload.  This means you now have control over what thumbnail is displayed for any given entry.

I've gotta stop working so late.  I keep adding bugs into my code!  Fortunately they're pretty small most of the time.  It's late right now so I'm sure this entry won't make much sense.  Good luck decyphering it. 

1 comment(s)  | viewed 479 time(s)
Tags: UpdateBugTutorial

Comments

Jon - 19 Jan 2007 9:09 PM
Hey thats a smart thing, it always bugged me when the pic i wanted to display didnt display
Name:
Email:
Comment:

Tags

Code,  Bug,  Update,  Tutorial