Choose images to appear in the gallery

If you’re using the Mid-Century theme you may find that you don’t want every one of your image assets to appear in the photo gallery widget. It’s easy to limit the images that appear there using tags.

First, go to Manage Assets and select the images you want to appear in the photo gallery widget. Choose “Add tags…” from the “More actions…” menu and tag those images “gallery.” Next, edit the “Gallery.” template module

Around line 6 you'll see:

<mt:Assets type="image">

Change it to:

<mt:Assets type="image" tag="gallery">

Then you need to change it again around line 23:

<mt:Assets lastn="10" type="image">

Change it to:

<mt:Assets lastn="10" type="image" tag="gallery">

Now only images that are tagged "gallery" will appear in the photo gallery widget. Republish your site and you're good-to-go.

Related Entries

6 Comments

Congrats for this really cool template! It works really well for me, except that I don't have the "Share This" and the "Related Entries" on the entry pages. I can't find anything related to that in my templates either. Can you help me?
Thanks a lot!

Dear Jim,
I'm a newser of MT4. I installed your Mid Century template, but I don't understand what I have to do to show the gallery. I can't find widgets in the design menu. Maybe have I to create a new widget set?

Thank You

Filippo

Hi Filippo. If you add image assets to your blog, the gallery module should show up automatically. Go to Create > Upload File, upload an image and republish.

Hi Jim,
I added the images assets and then republished the blog, but the gallery module don't show up. Can I try anything else? I'm working on the customization of this blog: www.dasromaelazio.com/das
I made some changes in the top navigation of banner header. Maybe these changes are the reason why the gallery doesn't show up. Actually I can't find a solution.

Filippo

I'm sorry, I know why. You probably don't have ImageMagick installed on your web server. You can check that in System Overview > Tools > System Information in MT.

Hai.. This is my problem too. I have ImageMagick installed on my system, but it doesn't work. I then debug it using vc2005 and found javascript error on function dialogShow line: $("#dialog-content").append(dialogImage);
please advice..

Leave a comment

Recent Entries

  • Regular blogging to resume soon

    I've been remiss in not posting here for a few days, but I've been busy with my son's first birthday, my 7th wedding anniversary, an...

  • My pick for best-designed blog

    I have to agree with Chris Basey, who commented on my previous post, that Veerle Pieter's blog is probably the best-designed blog out there. It’s...

  • The best-designed blogs

    What blogs are so well-designed that they make you say, "I wish my blog looked like that"? What is it about them that makes them...

  • Dashes.com now sporting Mid-Century

    Anil Dash's blog has an updated design and I'm proud to say it's a modified version of Mid-Century. Congrats to Anil on the ninth anniversary...

  • Adding Pages to sidebar

    Today I'm going to describe how to add a list of pages to the sidebar in the Mid-Century theme. The example I'm giving here creates...

Close