• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Separate Categories View

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #127 (If I Could Catch a Rainbow), cambyses.

Voting is now open for DSS #128 (Sunrise or Sunset). Voting is open through May 16th at 8:00 PM PDT

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Sep-06-2006, 07:48 PM
#1
Dramatapix® is offline Dramatapix® OP
Major grins
Dramatapix®'s Avatar
Separate Categories View
I realize that you can view your categories on your home page, but I'm looking to add a link in my nav bar for a separate 'category' view so that when someone navigates to another part of the site, all they have to do is click the 'gallery' link at the top nav bar and it will bring them to a separate page with the category view as it is on the main page.

Is this doable?

Brett
Old Sep-06-2006, 09:18 PM
#2
richW is offline richW
SmugMug Support Hero
richW's Avatar
Brett,

Check out devbobo's hack over here: http://www.dgrin.com/showthread.php?t=39470
It might be what you are looking for.

I set up my site for you to see how it works.

Home page with bio, popular, featured and gallery categories:

Then try this. Gallery categories only: edit: removed links
__________________
Rich | My Site | SmugHelp | Customizing SmugMug Simplified | FAQ | Webdev Tutorial |

Last edited by richW; Oct-21-2006 at 12:13 PM.
Old Sep-06-2006, 09:52 PM
#3
Dramatapix® is offline Dramatapix® OP
Major grins
Dramatapix®'s Avatar
Quote:
Originally Posted by richW
Brett,

Check out devbobo's hack over here: http://www.dgrin.com/showthread.php?t=39470
It might be what you are looking for.

I set up my site for you to see how it works.

Home page with bio, popular, featured and gallery categories: http://lmsportspix.smugmug.com/

Then try this. Gallery categories only: http://lmsportspix.smugmug.com/categories/
Just checked the site and that's it! Is the code I need in the hack that you provided? I'll have to wait til tomorrow to get to it, but thanks for showing it to me.

Brett
Old Sep-07-2006, 05:46 AM
#4
Dramatapix® is offline Dramatapix® OP
Major grins
Dramatapix®'s Avatar
disregard this post

Last edited by Dramatapix®; Sep-07-2006 at 06:02 AM.
Old Sep-07-2006, 06:53 AM
#5
richW is offline richW
SmugMug Support Hero
richW's Avatar
Quote:
Originally Posted by Dramatapix®
Just checked the site and that's it! Is the code I need in the hack that you provided?

Brett
Yes. All the info is there.

This is what I used to get mine going.

In the css section:
Code:
.categories #categoriesBox {display:block;}
.categories #featuredBox {display:none;}
.categories #bioBox {display:none;}
.categories #popularPhotos {display:none;}
In the footer section:

Code:
 
if (hasPath("categories"))
  YAHOO.util.Dom.addClass(document.body, "categories");
 
function hasPath(sPath)
{
  re = new RegExp("\/" + sPath + "(\/|$)");
  return re.test(window.location)
}
Change the stuff in red to suit your needs.
__________________
Rich | My Site | SmugHelp | Customizing SmugMug Simplified | FAQ | Webdev Tutorial |
Old Sep-08-2006, 06:19 PM
#6
stephenbruno is offline stephenbruno
Stephen Bruno
stephenbruno's Avatar
question
what are examples of categories?

Quote:
Originally Posted by richW
Yes. All the info is there.

This is what I used to get mine going.

In the css section:
Code:
.categories #categoriesBox {display:block;}
.categories #featuredBox {display:none;}
.categories #bioBox {display:none;}
.categories #popularPhotos {display:none;}
In the footer section:

Code:
 
if (hasPath("categories"))
  YAHOO.util.Dom.addClass(document.body, "categories");
 
function hasPath(sPath)
{
  re = new RegExp("\/" + sPath + "(\/|$)");
  return re.test(window.location)
}
Change the stuff in red to suit your needs.
Old Sep-08-2006, 11:43 PM
#7
richW is offline richW
SmugMug Support Hero
richW's Avatar
Quote:
Originally Posted by stephenbruno
what are examples of categories?
Not sure what you mean.
The code above is used to display the "gallery categories" on their own page. Without this script you are not able to directly access the gallery categories with a url. Unlike the popular photos, keywords, date; were you can access them via url like: http://smugmug.com/keyword/
__________________
Rich | My Site | SmugHelp | Customizing SmugMug Simplified | FAQ | Webdev Tutorial |
Tell The World!  

Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump