|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Big grins
|
hiding gallery categories or sub-categories
Is it possible to hide categories or sub-categories? I know it's possible to get this effect by marking all the galleries inside as hidden, but suppose I have galleries in a particular gallery that I don't want to hide, and yet I still want to hide only the category that contains them, on my main page. Right now I have to mark each gallery as hidden, but I want that type of control over the individual categories as well. -- Paul
|
|
|
|
|
#2
|
||
|
"tweak 'til it squeaks"
|
Quote:
below shows Family category being hidden. Put in javascript Code:
<!-- Hide Categories -->
function delCategory() {
re = /\/(Family)$/;
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 -->
re = /\/(cat1|cat2|cat3)$/;
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#3
|
|
|
Major grins
|
Allen's solution works (I use it myself), but you need to be aware of a security "hole" with the method.
Anything hidden with scripts (like the one posted above) will be fully visible on alternate interfaces. The RSS feed, iphone and any application that accesses your site through the API interface do not "respect" this method for hiding assets on your web site. |
|
|
|
|
#4
|
||
|
Big grins
|
Quote:
Can this be made a feature request or is this a really strange thing to want in the standard functions? -- Paul |
|
|
|
||
|
#5
|
||
|
Major grins
|
Quote:
The current situation is less than ideal since making galleries private (unlisted, hidden) breaks breadcrumb navigation. I'd love to be able to tag an entire category (or subcategory) as private/hidden/unlisted so it does not show up when browsing from any public interface, but if I give someone a direct link "inside" then they can navigate around in the lower levels. |
|
|
|
||
|
#6
|
|
|
Beginner grinner
|
Interesting but this is exactly why I was lead here. Looks like we've bee requesting this option / feature now for 5 years or so? We just need to be able to hide a complete category from public view
Come on Smug Mug. Help us out. |
|
|
|
|
#7
|
|
|
Major grins
|
5 years of asking ...and anyone still believes it will be implemented? :) I obviously do not know exactly how the SmugMug's system is coded and structured, but I've been is software design business for more than 15 years. My experience tells me that to make what you are asking (and to make it the right way) will require changes on the core level of the entire system: database schema. It means entire redesign. I doubt very much it will ever be done. I simply know what is involved in things like that:)
__________________
http://www.michaelshapirophotography.com Last edited by mishenka; Sep-25-2012 at 06:30 AM. |
|
|
|
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|