hiding gallery categories or sub-categories

eyeDutcheyeDutch Registered Users Posts: 54 Big grins
edited September 25, 2012 in SmugMug Support
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

Comments

  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited July 18, 2008
    eyeDutch wrote:
    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
    You can hide categories from the category box with some js. Example
    below shows Family category being hidden.

    Put in javascript
          <!-- Hide Categories -->
    function delCategory() {
      re = /\/([COLOR=red]Family[/COLOR])$/;
    
      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 -->
    
    For more then one add a | between them. cat1|cat2|cat3

    re = /\/(cat1|cat2|cat3)$/;
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • mbellotmbellot Registered Users Posts: 465 Major grins
    edited July 18, 2008
    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.
  • eyeDutcheyeDutch Registered Users Posts: 54 Big grins
    edited July 18, 2008
    mbellot wrote:
    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.

    Exactly, and that is not acceptable, nor is it acceptable to have to hack this with javascript. What I meant was that I want to be able to do this via the browser, some buttons, a form you catch my drift, the 21st century ;-)

    Can this be made a feature request or is this a really strange thing to want in the standard functions?

    -- Paul
  • mbellotmbellot Registered Users Posts: 465 Major grins
    edited July 19, 2008
    eyeDutch wrote:
    Exactly, and that is not acceptable, nor is it acceptable to have to hack this with javascript. What I meant was that I want to be able to do this via the browser, some buttons, a form you catch my drift, the 21st century ;-)

    Can this be made a feature request or is this a really strange thing to want in the standard functions?

    -- Paul

    I totally "catch your drift"...

    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.
  • CodewizeCodewize Registered Users Posts: 7 Beginner grinner
    edited September 24, 2012
    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.
  • mishenkamishenka Banned Posts: 470 Major grins
    edited September 25, 2012
    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:)
Sign In or Register to comment.