Not a developer? Go to

Plugin and Theme Directory

Asset Gallery v1.2.6

By Byrne Reese
Posted September 11, 2012.


Asset Gallery lets you easily create collections for your entries, such as photo galleries. Combining MT4's built-in asset manager with powerful custom fields capabilities, you simply upload your files using the familiar Movable Type interface and the plugin does the rest, even offering a fancy carousel view of your images right within the MT interface. Asset Gallery supports non-photo uploads, too, supporting display of video files, Word documents, PDFs or anything else on any page on your site.

To display the assets on your blog, Asset Gallery gives you a new custom template tag with the -Assets block/container tag (within which you can use any MTAsset tag).

For example, if you had created a custom field with a custom tag of MTEntryPhotoGallery, you could use the following code to display the images in your gallery:

    <a href="<mt:AssetURL>" title="<mt:AssetLabel>"><img src="<mt:AssetThumbnailURL>" /></a>


Custom Fields (included with the Professional Pack)


Movable Type versions: 4.3





Richard Benson on July 10, 2008, 6:26 a.m. Reply

This looks brilliant, however I get the following error as soon as this plugin is intalled:

“Publish error in template ‘error.tmpl’: Unknown tag found: setvarblock”

Any ideas?

(running 4.2rc3)

Chris on July 10, 2008, 10:16 a.m. Reply

I am experiencing the exact same problem with the same release version of MT as Richard Benson.

Richard Benson on July 15, 2008, 9:46 a.m. Reply

ok, I have narrowed the actual error generated to /tmpl/cms/error.tmpl (or at least whatever is parsing it) and it can’t handle a single MT tag, not one, hence the useless error message.

Now, has the asset gallery also broken the error reporting, or was the error reporting broken anyway and when Asset Gallery generated an error MT can no longer handle it?

Has anyone got this working? If so on what set up?

Richard Benson on July 25, 2008, 7:37 a.m. Reply

If you change line 62 of /plugins/AssetGallery/lib/ to:


The tagging instructions above look like they are completely off, and in facvt following them will mean nothing will happen to your assets. I called mine “entryphotogallery” in the template tag and the basename. You also HAVE to specify a folder to place the uploaded images.

To get it to display, you do the following:

        <a>" title="">" /></a>

But that doesn’t do thumbnails like it specifies there. I will keep digging until such time as Arvind or someone else involved lets us know what’s going on!

Looks like the sub names were changed.

Interestingly, it breaks my YUI plugin :(

Richard Benson on July 25, 2008, 7:49 a.m. Reply

all the code there is wrong, i still haven’t worked out what does to code!

smitty1140 on August 6, 2008, 12:40 p.m. Reply

Where do I upload these files too?

Yoda on September 4, 2008, 10:43 p.m. Reply

something is wonky….I keep getting a “Please enter some value for required ‘mytagname’ field”. even after I have uploaded the images needed.

anyone have any ideas?


Carlo Laitano on November 16, 2008, 10:31 a.m. Reply

I have an issue with editing already existing entries. The asset gallery appears when writing entries, but it won’t show up when I want to edit existing entries. It won’t even appear on the Display Options drop down list. Any ideas?

daraddishman on April 2, 2009, 3:07 p.m. Reply

I had hoped this was fixed, but I just tried to install this plugin on MT 4.2 and got the following:

Can’t build error template; got error ‘Publish error in template ‘error.tmpl’: Unknown tag found: setvarblock ‘. Giving up. Original error was:

Undefined subroutine &AssetGallery::loadmetafields called

Le sigh.

Leave a Comment

Byrne Reese

Byrne Reese was previously the Product Manager of Movable Type at Six Apart, where he had also held positions as the Manager of Platform Technology and Product Manager for TypePad. Byrne is a huge supporter of the Movable Type user and developer community. He dedicates much of his time to promoting and educating people about Movable Type as well as building the tools and plugins for Movable Type that are showcased on Majordojo. He contributes regularly to open source; and he is an advocate for open protocols and standards like Atom and OpenID.