View Full Version : Gallery set up help.....PLEASE
Herdygurdy
Nov-22-2008, 07:35 PM
Here is my home page:
http://www.splitlightphotography.com/
If you click "Portfolio" in my Navbar it does exactly what I need.
If you click "Client Access" it does exactly what I want as well, only my portfolio galleries are listed at the bottom. How do I keep the portfolio gallery set up the way it is and not have those galleries listed in Client Access area?:scratch
Allen
Nov-22-2008, 07:48 PM
Here is my home page:
http://www.splitlightphotography.com/
If you click "Portfolio" in my Navbar it does exactly what I need.
If you click "Client Access" it does exactly what I want as well, only my portfolio galleries are listed at the bottom. How do I keep the portfolio gallery set up the way it is and not have those galleries listed in Client Access area?:scratch
Change your navbar link to this.
<li><a href="/Client%20Sessions">Client Access</a></li>
Your galleries link is going to show all public galleries. You can add this to
your navbar to access all these galleries.
<li><a href="/galleries">Galleries</a></li>
If you want to hide the Client Sessions and Portfolio categories from the
galleries page you'll have to toggle the galleries box to "display by
category". Then add this to your footer javascript to hide them. The direct
links in your navbar will still work.
<!-- Hide Categories -->
function delCategory() {
re = /\/(Client%20Sessions|portfolio)$/;
var oList = YD.getElementsByClassName('miniBox', 'div', this);
for (i = 0; i < oList.length; i++) {
if (re.test(oList[i].getElementsByTagName('a')[0].href))
oList[i].parentNode.removeChild(oList[i]);
}
}
YE.onContentReady('categoriesBox', delCategory);
<!-- End Hide Categories -->
jfriend
Nov-22-2008, 10:23 PM
Change your navbar link to this.
<li><a href="/Client%20Sessions">Client Access</a></li>
Your galleries link is going to show all public galleries. You can add this to
your navbar to access all these galleries.
<li><a href="/galleries">Galleries</a></li>
If you want to hide the Client Sessions and Portfolio categories from the
galleries page you'll have to toggle the galleries box to "display by
category". Then add this to your footer javascript to hide them. The direct
links in your navbar will still work.
<!-- Hide Categories -->
function delCategory() {
re = /\/(Client%20Sessions|portfolio)$/;
var oList = YD.getElementsByClassName('miniBox', 'div', this);
for (i = 0; i < oList.length; i++) {
if (re.test(oList[i].getElementsByTagName('a')[0].href))
oList[i].parentNode.removeChild(oList[i]);
}
}
YE.onContentReady('categoriesBox', delCategory);
<!-- End Hide Categories -->
Allen, do those kinds of comments before and after the Javascript code work? I've only ever used these forms:
// comment here
or
/* comment here */
Allen
Nov-23-2008, 07:22 AM
Allen, do those kinds of comments before and after the Javascript code work? I've only ever used these forms:
// comment here
or
/* comment here */
Might have to look that up. But both will work, think the // only goes on front of line to disable line.
Searching found this.
The "<!--" tag starts an HTML comment which tells the browser not to display
anything until after the ending comment tag, "-->". The "//" tells JavaScript
not to execute that particular line.
Using the <!-- tags can be tricky because within the comment there can't be any double dashes --.
Herdygurdy
Nov-23-2008, 02:14 PM
If you want to hide the Client Sessions and Portfolio categories from the
galleries page you'll have to toggle the galleries box to "display by
category". Then add this to your footer javascript to hide them. The direct
links in your navbar will still work.
Hi Allen-
So far so good. I am not clear on the "display by
category". Can you point me in the direction of where I am to toggle this?
Allen
Nov-23-2008, 10:18 PM
Hi Allen-
So far so good. I am not clear on the "display by
category". Can you point me in the direction of where I am to toggle this?
This might help.
http://www.smugmug.com/help/arrange-albums
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.