|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Major grins
|
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 |
|
|
|
|
#2
|
|
|
SmugMug Support Hero
|
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. |
|
|
|
|
#3
|
||
|
Major grins
|
Quote:
Brett |
|
|
|
||
|
#4
|
|
|
Major grins
|
disregard this post
Last edited by Dramatapix®; Sep-07-2006 at 06:02 AM. |
|
|
|
|
#5
|
||
|
SmugMug Support Hero
|
Quote:
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;}
Code:
if (hasPath("categories"))
YAHOO.util.Dom.addClass(document.body, "categories");
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
__________________
Rich | My Site | SmugHelp | Customizing SmugMug Simplified | FAQ | Webdev Tutorial | |
|
|
|
||
|
#6
|
||
|
Stephen Bruno
|
question
what are examples of categories?
Quote:
|
|
|
|
||
|
#7
|
||
|
SmugMug Support Hero
|
Quote:
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 | |
|
|