The Galleries Page I
For the Galleries page we are going to use one of
Devbobo's tricks. See the dgrin thread
here.
What it does, in short, is it duplicates the homepage, but makes it separately adressable for us.
Add this to your "Bottom javascript":
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
Now we have your 'normal' homepage which is accessible at XXXXX.smugmug.com and your 'duplicate' homepage which is accessible at XXXXX.smugmug.com/galleries
Devbobo's tricks. See the dgrin thread
here.
What it does, in short, is it duplicates the homepage, but makes it separately adressable for us.
Add this to your "Bottom javascript":
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
Now we have your 'normal' homepage which is accessible at XXXXX.smugmug.com and your 'duplicate' homepage which is accessible at XXXXX.smugmug.com/galleries