PDA

View Full Version : Featured galleries Link in NavBar


energykick
May-11-2007, 07:15 AM
I've setup a banner, navbar and slideshow. I have videos and music setup as galleries and now I want to set a few featured galleries and then a link in the nav bar. I setup a featured gallery but don't know how the URL to link to it. It's happening here but I can't figure out how?

http://www.moonriverphotography.com/featured

Thanks for any help.
Rob

oh here I am
http://shinynewday.smugmug.com

richW
May-11-2007, 07:08 PM
This should get you going. Adjustments may need to be done after.

This is based on devbobo's hack over here: http://www.dgrin.com/showthread.php?p=355505#post355505
and in the galleries page part of the tutorial over here: http://dgrin.smugmug.com/gallery/2160039


Paste in your JS section:

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

Paste in your footer above the slideshow code:

<*script type="text/javascript"*>
if (hasPath("featured"))
YD.addClass(document.body, "featured");
<*/script*>

Remove the *'s


Paste in your css section:

.homepage #featuredBox {display: none;}

.featured #bioBox {display: none;}

.featured #featuredBox {display: block;}

Change this line in your navBar:
<li><a href="http://shinynewday.smugmug.com/Featured">Featured</a></li>

to this:
<li><a href="http://shinynewday.smugmug.com/featured">Featured</a></li>


Repaste this line in your navBar, yours has an error in it.
<li><a href="http://shinynewday.smugmug.com/Photos">Photos</a></li>

energykick
May-12-2007, 05:31 AM
Thank you so much. I say devbobo's mod but could not figure it out, in the end was missing the footer part. All works and I will now try some other menu items without breaking anything. :ivar

richW
May-12-2007, 08:07 AM
Your Welcome....:thumb
If you want the galleries off the feature page, add this:
.featured #galleriesBox {display: none;}