| Author | Messages | |
Joe Craig
 Posts:83

| | 03/25/2007 10:06 AM |
| I've modified the TopTabsB to get about half of the behavior that I want. I think I need help with the other 50%.
My Pages are arranged like this:
Home Tab 1 Tab 1-A Tab 1-B Tab 2
Tab 2-A
Tab 2-B
I added Type="ActiveChildTabs" in the child menu control.
With this, when I click on Tab 1, the second level shows Tab 1-A and Tab 1-B. Same as when I click on Tab 2. When I click on one of the second level tabs, the second level items disappear.
What I'd like to have happen is that the second level items appear when I've clicked a second level item. For instance, if I click Tab 2-A, I'd like the Tab 2-A and Tab 2-B items to remain on the second level menu and visible, but with Tab 2-A highlighted.
How do I do this?
| | | |
| |
| John Mitchell Posts:3478


| | 03/25/2007 8:39 PM |
| If I'm understanding corectly you want it to work the same as the sample, but you want the second level selected tab to be highlighted when active.
That sample should already do that. But if you look at the Blue Tabs (TopTabsB) sample, you might see it better. In this demo http://demo.snapsis.com/Tabs/TopBlue/tabid/58/Default.aspx the second level tabs are all dim except for the last one which is currently active.
The css that makes that happen is: #NavTabs .SelectedTab a { font-weight:bold; border-left:4px solid blue; background-color: #FFF; color:#000; }
Setting the type to ActiveChildTabs is not common and most menus can be created without using that attribute. It is a carry over from when the menu was first developed. As a matter of fact, the more I think about it, I should probably remove that type.
Was there a specific behaviour that the sample was not giving you, or did you just want some better highlighting of the selected tab? | | | |
| Joe Craig
 Posts:83

| | 03/25/2007 10:33 PM |
| John,
Not quite ...
In my test site, my structure is:
Home Tab 1 Tab 1-a Tab 1-b Tab 2 Tab 2-a Tab 2-b
When I click on Tab 1, I want only Tab 1-a and Tab 2-a to show on the child menu When I click on Tab 2, I want only Tab 2-a and Tab 2-b to show on the child menu
----------- In the example that you cited, clicking on Tabs results in the four second level items being shown. I only want to two second level items associated with the Tabs tab to show. That is why I changed the Type to ActiveChildTabs.
When I click on an first level menu, the result is that the correct second level menu items show, as desired. But, when I click on one of the second level tabs, then all of the second level tab names disappear.
With Type set to Tabs, I get the behaviour that I want ... except that I don't want the other second level tabs (those associated with the non-active parent tab) to appear.
----------- I also wonder if the Exclude is working correctly. With the TopB skin, I see all of the Admin and Host second level menu items, even though the skin has those Excluded.
----------- Also, there is a type in portal.ascx for TopB. border-colapse should be border-collapse ... twice.
I hope that this description of the desired behavior makes more sense ...
| | | |
| John Mitchell Posts:3478


| | 03/26/2007 8:11 AM |
| Ok, I see where the problem is now. The behavior you are describing is the expected behavior, and what I thought it was doing. I can see now that it is not. I must have let a bug sneak in on one of the latest versions.
I'll get this corrected and send you a new one.
Thanks for taking the time to describe the problem in detail. | | | |
| Joe Craig
 Posts:83

| | 03/26/2007 10:05 AM |
| Thanks, John!
| | | |
|
|