• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Using "Path" to control HTML

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Dec-28-2006, 05:08 AM
#1
largelylivin is offline largelylivin OP
Blue-Dog
Using "Path" to control HTML
I want to be able to control which Nav etc I use according to the Path name, unless there's a better way. I have a default business page, but when ..../family/ I'd like to use different Navs (a different home page) and later I'll have .../client/ which will need something else. Suggestions?

http://largelylivin.smugmug.com
Old Dec-28-2006, 05:39 AM
#2
Allen is offline Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by largelylivin
I want to be able to control which Nav etc I use according to the Path name, unless there's a better way. I have a default business page, but when ..../family/ I'd like to use different Navs (a different home page) and later I'll have .../client/ which will need something else. Suggestions?

http://largelylivin.smugmug.com
You now have one nav defined as "navcontainer" in your header, so you'll
just define some more. Like "familyNav", "busNav", clientNav, etc. Then
you can place them on any gallery or category with CSS.

To keep them from showing everywhere.
#familyNav,
#busNav,
#clientNav,
#navcontainer
{display:none;}

Then in each category or gallery set the one in CSS you want to show.

.homepage #navcontainer {display:block;}
.category_family #familyNav {display:block;}

In the nav CSS you add all navs to each statement.
Anything common
#familyNav ul,
#busNav ul,
#clientNav ul,
#navcontainer ul
{ margin-top: 10px;
padding: 0;
list-style-type: none;
text-align: center;
clear: both;
}

or any differences
#busNav ul {
margin-top: 10px;
padding: 20;
list-style-type: none;
text-align: right;
clear: both;
}

#clientNav ul {
margin-top: 0px;
padding: 10;
list-style-type: none;
text-align: center;
clear: both;
}

If you need any help holler back
Al
Old Dec-28-2006, 06:26 AM
#3
largelylivin is offline largelylivin OP
Blue-Dog
Thanks Al, I kind of understand what you showed me, but I can't see how the mechanism works.

I see how #homepage works because its a switch that's made available to us that is True when the page we are on is xxx.smugmug.com/homepage, right?

I also see that category_family works because again its a switch that says essentially when the category name is family then category_family is true.

But there is not a switch that says that /family/ is in the directory path because I just made it up myself. RIght?

Does this solution require that the category name is equivalent to the 'user group'?
Old Dec-28-2006, 06:59 AM
#4
Allen is offline Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by largelylivin
Thanks Al, I kind of understand what you showed me, but I can't see how the mechanism works.

I see how #homepage works because its a switch that's made available to us that is True when the page we are on is xxx.smugmug.com/homepage, right?

I also see that category_family works because again its a switch that says essentially when the category name is family then category_family is true.

But there is not a switch that says that /family/ is in the directory path because I just made it up myself. RIght?

Does this solution require that the category name is equivalent to the 'user group'?
If you have each area set as different categories you can assign a different
menu for each using the category name. Or you can set it for one particular
gallery > .gallery_xxxxxxx.

Don't understand what you mean by switch. These are the different types
of areas that you can apply different menus to.
category (apply to all sub-cats and galleries below)
sub-category (apply to all galleries below)
gallery
keywordPage
popularPage
galleries (hack)
homepage

Make sense?
AL
Old Dec-28-2006, 07:07 AM
#5
largelylivin is offline largelylivin OP
Blue-Dog
Got it,
I just have to stop thinking like a designer and start understanding how you guys have addressed the capability already. SWITCH: a lame attempt to avoid programming words like Variable or Boolean.

Has anyone implemented a "mailing list" capability?

Thanks Al
Old Dec-31-2006, 01:11 AM
#6
largelylivin is offline largelylivin OP
Blue-Dog
OK Implementing, now I have questions.
Quote:
Originally Posted by Allen
If you have each area set as different categories you can assign a different
menu for each using the category name. Or you can set it for one particular
gallery > .gallery_xxxxxxx.

AL
So, as I understand, using this technique I have one category that corresponds to each type of user (i.e. family, friends, business, client) and by selecting which cateory is displayed, I am also controlling which nav bar,etc. is displayed. Right?

Now, I can customize each category as to what is displayed, passwords, etc. So, even if a category business is selected, I still may not display anything, as I do now on my business home page. Right?

I do not recognize the above statement :

gallery > gallery_xxxx

Is that how I select what is displayed in the gallery area? So that's HTML?

So, if I am in the friends area I:
category > category_friends?

All of this also means that I don't need to use sub pages likes ..../friends/ right?
Old Jan-01-2007, 05:20 AM
#7
largelylivin is offline largelylivin OP
Blue-Dog
bump
Anybody there??? I got abanded in the middle of this thread and am now confused. Can someone re-read this thread and pick-up where Al left off????
Old Jan-01-2007, 07:02 AM
#8
Andy is offline Andy
panasonikon
Andy's Avatar
Quote:
Originally Posted by largelylivin
Anybody there??? I got abanded in the middle of this thread and am now confused. Can someone re-read this thread and pick-up where Al left off????
Not without you summarizing what you want/need.

I have no clue.

Is this a navbar help question?
Something else?
How come we're in the hacks forum?
.....
__________________
Andy
Moon River PhotographyWorkshopsGoogle+FacebookTwitter
Old Jan-01-2007, 07:41 AM
#9
Allen is offline Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by largelylivin
Anybody there??? I got abanded in the middle of this thread and am now confused. Can someone re-read this thread and pick-up where Al left off????
I'm looking and trying to understand.

Just rambling here
You have family and friends links in upper left corner.
You'd click family to go to family category
http://largelylivin.smugmug.com/family
You'd click friends to go to friends category
http://largelylivin.smugmug.com/friends

So when clicking family link, family category shows and has it's own family navbar.

#navcontainer {display:none;}
#familycontainer {display:block;}
#friendscontainer {display:none;}

Am I anywhere close?
Al

Edit: Went to family category (http://largelylivin.smugmug.com/family)

disabled #familywrapper (added spaces)
#fami lywrapper,
#friendswrapper,
#buswrapper,
#clientwrapper,
#navwrapper {display: none;}
Added below
#navcontainer {display:none;}
#familycontainer {display:block;}
#friendscontainer {display:none;}

Family (#familycontainer) menu now shows
Getting closer?
Old Jan-04-2007, 04:59 AM
#10
largelylivin is offline largelylivin OP
Blue-Dog
Ah @!#&!! Maybe there's a lesson here,
Allen,

Thank you for all of your hard work on my behalf.

This is one of those cases where you develop a vision of the end state without really understanding how to do it. Then, when those little implementation details get in the way you realize that you could settle for something a bit different but a whole lot easier.

In my engineer structured brain I kept insisting on thinking of smugmug origanization as a simple hierarchy, I am sure there is a good reasons that it isn't, and that was driving my vision. Engineers are trained to think heirarchically, in terms of decomposition,...well fortunately, most of your members don't suffer from that restrictive world view.

I thought it worked like this:

smugmug>nickname>category>subcategory>gallery>phot o

So, when you get a lot of stuff and need to simplify the interface you add more organization and start using subcategories.

My error was in believing that I could simply move the categories up to the Nav bar and let the user select the appropriate subcategory from a drop-down menu causing those galleries to be displayed. I was getting really frustrated because I was trying to push the system in a direction that it was really designed to go.

Now I see the light. I can just let the user select the category from the drop-down, go to that URL, and let smugmug show the subcategories for the user to select from.

Maybe there could be a list or forum of 'not such good ideas'/'better ways to do things'.
Old Jan-04-2007, 06:41 AM
#11
Allen is offline Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by largelylivin
Allen,

Thank you for all of your hard work on my behalf.

This is one of those cases where you develop a vision of the end state without really understanding how to do it.

Yal bit, but without that vision you'd never get anywhere.

Then, when those little implementation details get in the way you realize that you could settle for something a bit different but a whole lot easier.


2 + 2 = YourVision or 1 + 4 -6 +3 + 2 = YourVision

In my engineer structured brain I kept insisting on thinking of smugmug origanization as a simple hierarchy, I am sure there is a good reasons that it isn't, and that was driving my vision. Engineers are trained to think heirarchically, in terms of decomposition,...well fortunately, most of your members don't suffer from that restrictive world view.

Hey, I resemble that, retired after 40yrs being one of those engineers ... and we ain't required to spell right either.

I thought it worked like this:

smugmug>nickname>category>subcategory>gallery>phot o

It does work like that. Except galleries can also be in categories.

So, when you get a lot of stuff and need to simplify the interface you add more organization and start using subcategories.

My error was in believing that I could simply move the categories up to the Nav bar and let the user select the appropriate subcategory from a drop-down menu causing those galleries to be displayed. I was getting really frustrated because I was trying to push the system in a direction that it was really designed to go.

Now I see the light. I can just let the user select the category from the drop-down, go to that URL, and let smugmug show the subcategories for the user to select from.

Maybe there could be a list or forum of 'not such good ideas'/'better ways to do things'.
The thing to keep in mind is providing a link that is a starting point for your
viewers and then the Smugmug[FONT=Verdana] hierarchy takes over[/FONT][FONT=Verdana]. [/FONT] You can do this simply
by linking to a category, sub-cat, etc. Or you could point to a specially
designed page containing your own defined combination of galleries.

Gota have that vision
Al
Tell The World!  

Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump