|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Gone shooting
|
Hiding specific categories from visitors
Hi,
Can anybody give me the link to the thread that explains how to show certain categories only when logged in? Looked around for a while but cannot seem to find it. Thanks guys, zizka.smugmug.com |
|
|
|
|
#2
|
|
|
Major grins
|
__________________
http://www.denisegoldberg.com ... http://denise.smugmug.com Musings & ramblings at http://denisegoldberg.blogspot.com, quick posts in google+ |
|
|
|
|
#3
|
||
|
Scripting dude-volunteer
|
Quote:
1) You should know that hiding a category with javascript is only a superficial, cosmetic hide. The existence of that data is still in your page for search engines and for any inquisitive viewer. And, furthermore, the existence of the category and the galleries in it is available through Smugmug's open API and through the iPhone interface. I'm not saying you can't or shouldn't hide them with javascript, but you should know what you are getting if you do so. 2) The BEST way to hide a category from a viewer is to simply mark all the galleries in the category as "Unlisted". By marking them unlisted, you are telling Smugmug that you don't want the viewing public to be able to browse to these galleries via your homepage. If a category has only unlisted galleries in it, it will not be shown either. The reason this is the best way to hide a category is that it has NONE of the drawbacks listed in item 1). It is truly hidden from the public.
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#4
|
||
|
"tweak 'til it squeaks"
|
Quote:
sub-cats as the category and sub-cat pages will show nothing. If there are a hundred galleries under there you'll have to provide all hundred individual direct gallery links.
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#5
|
||
|
Scripting dude-volunteer
|
Quote:
It depends upon why you're hiding it and how much you really want them hidden. If you just want them cosmetically hidden and don't care if some people find them anyway, you can do it any way you want. I just want to make sure that people understand they have the unlisted option to keep a category from showing and make sure people understand that delCategory doesn't hide things very well because they are all still in the page source. Basically you can't have a browsable hierarchy by others and have them well hidden. Smugmug doesn't support that. If you're OK with a flat list of galleries, you can use a sharegroup to put them all in a sharegroup and have them well hidden. Or, if you don't care how well hidden they are, you can use the delCategory code.
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#6
|
||
|
Gone shooting
|
Quote:
Thanks! |
|
|
|
||
|
#7
|
||
|
Scripting dude-volunteer
|
Quote:
Also, delCategory could be coded to not hide the category when you are logged in, but it seems that in this case you should use the built-in capability of unlisted galleries rather than go that way.
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#8
|
||
|
Gone shooting
|
Quote:
Here is the hierarchy I have: In my zizka.smugmug.com/galleries page, I have 9 categories (see below). 6 of those categories I want public, which they are right now. The 3 other categories on there have to do with the design of the website and that I don't want to show to anybody but myself. Making all their content Unlisted worked for 2 of the 3 categories EXCEPT that the last category, Photo Design, contains a Portfolio subcategory I need to make public. How do I make the Portfolio galleries public while making the rest of the Photo Design hidden from visitors? In other words: Galleries Page: -Destination Snapshots Category - Public - OK -Active Adventure Category - Public -OK -Around the World Category - Public - OK -Rocky Mountains of Canada Category - Public - OK -Sepia, etc. Category - Public - OK -Panoramas Category - Public - OK -GuidingFrancais Design Category - Hidden by making all Unlisted - OK -Guiding Design Category - Hidden by making all Unlisted - OK -Photo Design Category: ------8 design galleries that are hidden through Unlisted - OK ------1 sub-category called Portfolio that contains two galleries that should be public; my Portfolio navbar link leads to that subcategory. Hopefully that makes sense. Thanks, Paul |
|
|
|
||
|
#9
|
||
|
Scripting dude-volunteer
|
Quote:
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#10
|
||
|
Gone shooting
|
Quote:
Thanks, Paul |
|
|
|
||
|
#11
|
||
|
Scripting dude-volunteer
|
Quote:
To change your galleries, create a new top level category called Portfolio. Then, change the top level category of each of your galleries to it and set their sub-category to nothing. To fix up your category-specific styling, just change all references to ".category_Photo_Design" in your CSS to ".category_Portfolio" and ".subcategory_Portfolio" to ".category_Portfolio". and ".category_Photo_Design.subcategory_Portfolio" to ".category_Portfolio" and ".subcategory.category_Photo_Design.subcategory_Po rtfolio" to "category.category_Portfolio" if that's what you name the new top level category. If anything isn't quite right when you're done, just holler and we can sort it out. Probably worth making a backup copy of your CSS before you start this.
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#12
|
||
|
Gone shooting
|
Quote:
1. Move the custom footer from my previous Portfolio page (a subcategory) to my current Portfolio page (a category). 2. Make the Portfolio navbar link go bold when visiting the portfolio 3. I would rather not show the Portfolio category on the Stock page if possible; I would prefer it if visitors accessed those galleries only through the Portfolio link in the navbar; is there a way to do that? Another thing I would like to do is get rid of the Buy and Shopping Cart buttons on the News and Hire pages. Everything else looks great - thanks! |
|
|
|
||
|
#13
|
||
|
Scripting dude-volunteer
|
Quote:
.subcategory_Portfolio .portfolio_page {display:block;} to this: .category_Portfolio .portfolio_page {display:block;} Change: category.category_Portfolio #navbar_portfolio {font-weight:bold;} to this .category.category_Portfolio #navbar_portfolio {font-weight:bold;} To remove the Portfolio category from the Stock page, you would use the delCategory function on it. No other easy way.
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#14
|
||
|
Gone shooting
|
Quote:
|
|
|
|
||
|
#15
|
||
|
Scripting dude-volunteer
|
Quote:
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#16
|
||
|
Gone shooting
|
Quote:
Thanks!
|
|
|
|
||
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|