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)

Ty Sherman

Ty Sherman on May 24, 2017, 10:18 a.m. Reply

I had the same exact error when I first installed it, but then I realized that I had actually put the tags in the template before I installed it and that seemed to be causing the error. Now that I removed them, then installed it doesn’t through the error: “Publish error in template ‘error.tmpl’: Unknown tag found: setvarblock” anymore. Since I got it working, managing the invitations for my site rehearsal dinner site has been so much easier.

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.


Terina on March 26, 2016, 5:22 p.m. Reply

It is not working with any older version but 4.3+ only? free instagram followers


coleenmctrevs on December 28, 2016, 8:13 a.m. Reply

My entries are collected at in my personal account, however custom field capabilities there are not so diverse.


David_James on March 22, 2017, 6:40 p.m. Reply



nachoVi on April 4, 2017, 8:57 a.m. Reply

Nice review, I have bookmarked this website and I ‘ll come back here later

Magee Burton

Magee Burton on May 10, 2017, 8:53 a.m. Reply

Can I know more about its attributes? I tried to put the asset gallery inside a division but it is not working that way. Can you help me doing it? I just need the code to put inside the division. snoring mouth guard


Morgan on May 18, 2017, 11:38 a.m. Reply

I am encountering precisely the same with a similar discharge adaptation of MT as Richard Benson. But UK assignment writing service helped me a lot with the issue.

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.