• Currently 2.3/5
  • 1
  • 2
  • 3
  • 4
  • 5
Asset Gallery


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:

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

Requirements

Custom Fields (included with the Professional Pack)

9 Comments

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)

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

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?

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

    &load_customfield_type;

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:

<mt:If tag="entryphotogallery">
    <mt:EntryPhotoGalleryAssets>
        <a href="<$mt:AssetURL$>" title="<$mt:AssetLabel$>"><img src="<$mt:AssetThumbnailURL$>" /></a>
    </mt:EntryPhotoGalleryAssets>
</mt:If>

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 :(

all the code there is wrong, i still haven't worked out what MT.org does to code!

Where do I upload these files too?

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?

Yoda

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?

default userpic

daraddishman Author Profile Page

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

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.