This plugin provides a custom field type called "Asset Gallery." This field type allows users to upload multiple files at once and associate them with not just a single blog post, but also a single field within that post.
This plugin makes it easy for designers to create photo galleries embedded inside of a blog post.
This plugin was originally developed by Six Apart, but has since fallen into disrepair. Endevver has taken on responsibility for maintaining this plugin and has greatly enhanced its capabilities.
- Movable Type Pro
To install this plugin follow the instructions found here:
Setup & Usage
To use this plugin you will need to do three things:
- Install it obviously.
- Setup your templates so that when a post includes a gallery you have some means of showing your slideshow.
- Create a custom field and begin uploading files.
The instructions below should help you through that process.
About Asset Gallery's Template Tags
When you define a custom field of type asset gallery, Movable Type will prompt you for a tag name. This tag name will refer to a comma delimited list of asset IDs (the contents of your slideshow). To help you iterate over that list, two other template tags will be defined for you:
<mt:OriginalTagNameAssets></mt:OriginalTagNameAssets>- a container tag that will loop over each photo in the slideshow in order.
<$mt:OriginalTagNameAssetCount$>- a function tag that returns the total number of slides in the slideshow.
Installing the Templates
When you installed the Asset Gallery plugin a global template module called "Asset Gallery Slideshow" was created for you automatically. The next step is to display the gallery in a post if that post contains a gallery. This is done with this template code, supposing that the template tag name you gave your custom field was "Slideshow":
<mt:if tag="SlideshowAssetCount" gt="0"> <div id="slideshow" class="entry-content more"> <$mt:include module="Asset Gallery Slideshow"$> </div> </mt:if>
We suggest placing the slideshow in your Entry archive template right after your extended body (at the end of the post). But you can put it anywhere obviously.
Add this section somewhere inbetween
Tip: this is wrapped in an
<mt:if> block so that we only load all the
and render time.
Create a Gallery/Slideshow
To use the Asset Gallery plugin you will need to first create a custom field of the type "Asset Gallery" in the blog you want to begin using galleries within. Then navigate to the Edit Entry screen and click "Display Options" and make sure your custom field is visible on the page. Click "OK" to close Display Options.
Once the custom field is visible, you can begin uploading photos immediately. Upload as many as you want and then save the entry. When you are returned to the Edit Entry screen the gallery custom field will now show a list of all the photos you uploaded. You can then:
- reorder the slides in the gallery by dragging and dropping them
- rename the slides and give them captions right there in the custom field
- upload more slides
- delete slides
When you are complete, click "Save and Publish" and see your finished product!
You can file bug reports here:
- Via the Web: https://endevver.lighthouseapp.com/projects/41666-asset-gallery/overview
- Via Email: email@example.com
This plugin is licensed under the GPLv2.
At Endevver we design and develop products and web sites for companies that create and engage online communities. We make the Web a more social place. If this sounds like something you need, contact us at firstname.lastname@example.org.
(c) 2008 Six Apart, Ltd. (c) 2009 Endevver, LLC.