|
|
Thread Tools | Display Modes |
|
#1
|
|
|
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 |
|
|
|
|
#2
|
||
|
"tweak 'til it squeaks"
|
Quote:
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 |
|
|
|
||
|
#3
|
|
|
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'? |
|
|
|
|
#4
|
||
|
"tweak 'til it squeaks"
|
Quote:
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 |
|
|
|
||
|
#5
|
|
|
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 |
|
|
|
|
#6
|
||
|
Blue-Dog
|
OK Implementing, now I have questions.
Quote:
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? |
|
|
|
||
|
#7
|
|
|
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????
|
|
|
|
|
#8
|
||
|
panasonikon
|
Quote:
I have no clue. Is this a navbar help question? Something else? How come we're in the hacks forum? ..... |
|
|
|
||
|
#9
|
||
|
"tweak 'til it squeaks"
|
Quote:
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? |
|
|
|
||
|
#10
|
|
|
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'. |
|
|
|
|
#11
|
||
|
"tweak 'til it squeaks"
|
Quote:
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 | |
|
|