Editing the Gallery

The galleries are powered by the ContentFlow Javascript library, with the addition of  the slideshow and stack addons. On most pages the gallery will appear in a compact format at the top of the right column of widgets. Click on the “Showcase” link will bring the user to the main showcase page where a larger version will be display under the top image.

Adding new items to the slideshow is relatively simple, but not necessarily obvious. Here’s the current procedure to add a new project:

  • upload a screenshot of a the project (the closer to 600×400 the screenshot, the better) to the Media library (try to give it a name like gallery.collection.title.extension, where collection is a short expressive word to associate this image with where it comes from, title is the normal filename)
  • copy the URL of the image (click “view” next to the image in the media library and then click on the “full size” link)
  • go to the themes editor (“Editor” under the Appearance tab – this may only be visible if you’re an administrator)
  • choose the “gallery.php” file
  • make a copy of the first array() section (be sure to grab to the end of the parenthesis, including the comma
  • fill in the new entry:
  • url is the full link to the project
  • img is the url after the base template directory (usually year/month/filename)
  • caption is the title that will appear under the image – try to keep it relatively short, under about 15 words)
  • update the file and then test your new project!

The code to invoke the galleries is located in the Sidebar and Category templates. The ContentFlow library files are located in the TwentyTen theme directory.

Leave a Reply

Your email address will not be published.