PDA

View Full Version : HOw to I keep the galleries in my Team roping tab and NOT the galleries tab?


patriciagphotography
Mar-19-2010, 06:45 PM
http://patriciagphotography.smugmug.com/galleries

J Allen
Mar-20-2010, 02:04 AM
Add this to your top java-script box and see if it gets what you want:







function delCategory() {
re = /\/(Sports|anothercat|anothercat|anothercat)$/;

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);










:ear

patriciagphotography
Mar-20-2010, 06:55 AM
Add this to your top java-script box and see if it gets what you want:







function delCategory() {
re = /\/(Sports|anothercat|anothercat|anothercat)$/;

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);










:ear

I put that in and it is still there. :dunno

J Allen
Mar-20-2010, 10:33 AM
I put that in and it is still there. :dunno


i believe you need to show categories not galleries for this to work...

http://www.smugmug.com/help/arrange-albums

jfriend
Mar-20-2010, 03:12 PM
You can hide specific galleries with customization #14 here (http://www.dgrin.com/showthread.php?t=135068).