Options

How to get both "featured galleries" and "all galleries" in nav bar?

xenonsupraxenonsupra Registered Users Posts: 10 Big grins
edited October 4, 2008 in SmugMug Support
I'm looking for a way to create two separate pages.

I want one to be for my "featured galleries" and one to be for "all galleries"

You can see my site here: www.jcerone.com

I assume there is a trick somewhere or another that I haven't been able to find.

So far I've done well with all the tricks/ workarounds, but this one has got me stumped so I finally registered to make a post about it.

Thanks! :D

Joey

Comments

  • Options
    xenonsupraxenonsupra Registered Users Posts: 10 Big grins
    edited October 3, 2008
  • Options
    AllenAllen Registered Users Posts: 10,012 Major grins
    edited October 4, 2008
    xenonsupra wrote:
    I'm looking for a way to create two separate pages.

    I want one to be for my "featured galleries" and one to be for "all galleries"

    You can see my site here: www.jcerone.com

    I assume there is a trick somewhere or another that I haven't been able to find.

    So far I've done well with all the tricks/ workarounds, but this one has got me stumped so I finally registered to make a post about it.

    Thanks! :D

    Joey
    You'll need to create another duplicate homepage just like your galleries page.
    Add the red to your footer javascript. Don't forget to move the featured galleries
    out of your control panel under the homepage tab.
    function hasPath(sPath){
    re = new RegExp("\/" + sPath + "(\/|$)");
    return re.test(window.location)
    }
    
    if (hasPath("galleries"))
    YD.addClass(document.body, "galleries");
    
    [color=red]if (hasPath("featured"))
     YD.addClass(document.body, "featured");[/color]
    
    
    Your nav link would be.
    http://www.jcerone.com/featured

    Remember this CSS you added for the galleries hack? You will have to add
    the featured gallery to it. I think this CSS combo should show the featured
    galleries only on the new featured page.
    .homepage #galleriesBox,
    .homepage #categoriesBox,
    .homepage #featuredBox {
        display: none;
    }
    
    .featured #bioBox
    .galleries #bioBox {
        display: none;
    }
    
    .galleries #galleriesBox,
    .galleries #categoriesBox {
        display: block;
    }
    
    .featured #featuredBox {
        display: block;
    }
    
    Al - Just a volunteer here having fun
    My Website index | My Blog
Sign In or Register to comment.