Categories, Sub-Categories, Galleries and Photos
Posted on 07. Sep, 2009 by David Wolf in SmugMug Tutorials
One of the most commonly asked questions I receive pertains to the three-tiered hierarchy of SmugMug. Namely, Categories, Sub-Categories and Galleries. It’s almost universally mis-understood, and mis-used. So, I’m going to try to explain the relationship of all three levels of the hierarchy.
Let’s start with Galleries. A gallery contains photos or video. That’s it. Nothing else other than photos or video can live in a Gallery. You can not nest a gallery inside another gallery.
Galleries may be placed inside a category and/or a sub-category. What does that mean? Well, if you imagine that I have a gallery called “Paris” (which contains photos from a recent trip to Paris, France), that gallery might live inside the “Travel” category.
So, my hierarchy will look something like this:
- Travel (Category)
- Paris (Gallery)
So, when a visitor arrives at my SmugMug site, they will see the category called “Travel”. By clicking on Travel, they will be shown a list of all the galleries (but, not the photos) inside the Travel category. Our gallery, “Paris” is one of those galleries. Clicking on Paris, will open the gallery, and the photos can be viewed.
But, if I want to further sub-divide my Paris trip, I would also use sub-categories.
A sub-category subdivides the category. So, in this case, I could have “Paris” as my sub-category and have Galleries named “Art work”, “Architecture”, and “Food”. So, my hierarchy will now look like:
- Travel (Category – No photos here)
- Paris (Sub-Category – No photos here)
- Art Work (Gallery – photos here)
- Architecture (Gallery – photos here)
- Food (Gallery – photos here)
- Paris (Sub-Category – No photos here)
I can also have galleries directly under the Category; so it would look like this:
- Travel (Category – No photos here)
- Flags of the World (Gallery – photos here)
- Paris (Sub-Category – No photos here)
- Art Work (Gallery – photos here)
- Architecture (Gallery – photos here)
- Food (Gallery – photos here)
Ok, confused yet? Here are the rules.
Categories can have Galleries, Sub-Categories, but NO photos
Sub-Categories can have Galleries, but NO Categories or photos
Galleries can have photos but NO other galleries, Sub-Categories or Categories inside them
Think of it like this. Imagine a book shelf in your home. It has 3 shelfs. Those are “Categories”. Next, on each shelf you can have either photo albums (galleries) or boxes (sub-categories). Inside the boxes can be photo albums (galleries). The photos only go in a photo album. So, on the first shelf, you have two photo albums and a box which has three photo albums inside it. The second shelf, you have two boxes (each with two photo albums), and the third shelf has 3 photo albums. All these configurations are perfectly valid. But, I can NOT have a box inside a box, or a box inside a photo album, or a shelf inside a box or photo album.
So, as a hierarchy, this would look like:
- Shelf #1
- Photo album #1.1
- Photo album #1.2
- Box #1.1
- Photo album #1.1.1
- Photo album #1.1.2
- Photo album #1.1.3
- Shelf #2
- Box #2.1
- Photo album #2.1.1
- Photo album #2.1.2
- Box #2.2
- Photo album #2.2.1
- Photo album #2.2.2
- Box #2.1
- Shelf #3
- Photo album #3.1
- Photo album #3.2
- Photo album #3.3
And that, above, is as complicated as you can *ever* get. Three levels.
Shelf, box, album.
Was this helpful? Did it suck? Let me know below


















Alice
05. Nov, 2009
Hi David,
I was hoping that I would be able to click on my about tab in the nav bar and go straight to that page. Instead I go to a catagory page, if I understand your post correctly, and then from there the viewer needs to click again to get the gallery page that holds my “About” page. It doesn’t look like there is any way to bypass this, but it is pretty clunky. I am hoping I am just not understanding your post and there is a work around for this problem. I have seen some sites that seem to do what I want to do, but I don’t know how to achieve that myself. Thanks. Alice
David Wolf
05. Nov, 2009
You’re doing it wrong. If you want to link directly to the gallery, link to:
http://freedomsrealmart.smugmug.com/About/abouttheArtist/10155482_Q7XP8
If you just link to /About you’ll see what you’re seeing…. But, you also seem to have a broken link on the about page: your photo does not show up for me.
David
13. Nov, 2009
I’d like to be able to feature subcategories on my homepage instead of just galleries or categories. Is that possible currently?
David Wolf
13. Nov, 2009
You’d need to actually create your own code to do what you want. There’s no “easy” way to feature a category/sub-category.. But you can deep link to it easily.
Roy
24. Jan, 2010
Hi David,
I have a gallery called “Sango” in the “Family” category.
I am working on putting embedded music with this script :
#musique_sango {display: none;}
.homepage #musique_sango {display: block;}
.category_Family #musique_sango {display: block;}
.gallery_Sango #musique_sango {display: block;}
in order to manage where it will appear.
It works fine with homapage and category but not with the gallery.
Did I make a mistake ?
Thanks for your help….
Roy
David Wolf
24. Jan, 2010
You need to use the gallery number. So, it’s .gallery_123456 not .gallery_Sango
Roy
24. Jan, 2010
Great !!!
Thanks.
Rob
16. Mar, 2010
David,
Previously my galleries – for hockey especially – were arranged such that the newest games were first; now it’s the oldest since I switched themes. Can you help me out?