Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Highlight specific SubMenu with same TabIdHighlight specific SubMenu with same TabId
Previous
 
Next
New Post
8/29/2010 9:54 PM
 
Hello, this is my question, Hope someone can help.

In my project, There is dynamic submenu by inserting other animals inputed by user.

the menu is like this: (user already add fish and tiger as custom animals)

-----------------------------------------------------------------------------------------------
Home       |     menu                    |    Admin      |    Host
                       cat                                                                 --tabid=100
                       dog                                                               --tabid=101
                       fish                                                               --tabid=110?OtherAnimalId=4748
                       tiger                                                              --tabid=110?OtherAnimalId=4749
                       Add other animals                                     --tabid=110



------------------------------------------------------------------------------------------------

the problem is when I click the fish or tiger, "Add other animals " always be highlighted. I suppose it it because they have the same tabid.
How to let dnn highlight the right submenu?

A lot of thanks if someone can help.

Thank you.
 
New Post
8/30/2010 3:34 AM
 
To answer your question, I have another question:
Are you using the default menu and if so, how do you inject the extra menu items?
 
New Post
8/30/2010 9:24 AM
 
Hi Timo,

Thank you for your question.

I think the code is better than the description. The SolPartMenu.aspx.vb in /admin/skin was modified a little. New function AddDynamicNode(objNodes) was added in Private Sub BuildNodes(ByVal objNode As WebControls.DNNNode)


--------------------------------------------------
                 Private Sub AddDynamicMonNode(ByRef objNodes As DNNNodeCollection)
                        Dim ................
                        ot = objTab.GetTabByName("Add other animals", PortalController.GetCurrentPortalSettings.PortalId)                    --------find the tabid of "Add other animals" page
                        customAnimalList = CustomEntry_GeAnimalType(u.UserID)
                        For monnum = 0 To customAnimalList .Count - 1
                            customNode = New WebControls.DNNNode
                            customNode.ID = animalnum
                            customNode.NavigateURL = NavigateURL(ot.TabID, "") & "?AnimaltypeId=" & customAnimalList(animalnum).AnimalTypeID              ----------assign url to sub menu --tabid=110?OtherAnimalId=4748
                            customNode.Text = customAnimalList (animalnum).AnimalTypeID
                            For num = 0 To objNodes.Count - 1
                                If objNodes(num).Text.ToUpper = "
YOUR ANIMALS" Then              ----------------find the "menu" Your Animals (which is "menu" in first post)
                                    parentNode = objNodes(num)
                                    parentNode.HasNodes = True
                                    parentNode.DNNNodes.InsertBefore(3, customNode)                 ---------"3" ensured that all custom animals added before "Add other animals" sub menu
                                End If
                            Next
                        Next
----------------------------------------------------------


Do you think it is a good way to do this? (Just ask and for learning, it is already like this)

How to solve the highlight problem? (if you click the "fish" or any other custom animal, the sub menu Add other animals got highlighted)

Thank you for your answer.

Best,
Chris
 
New Post
8/30/2010 2:24 PM
 
Using Solpart is not the best thing to do as it is not developed anymore and thus has issues with newer browsers.
Also if you would use NAV, you should be able to get the CSS right, as it has better CSS classes.
HTH
 
New Post
8/30/2010 6:26 PM
 
Hi Timo,

Thank you for your suggestion. However in this case, have you found any problem in my code? how can I solve the highlight problem? Where should I start?

I am appreciate your help.

Best,
Chris
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Highlight specific SubMenu with same TabIdHighlight specific SubMenu with same TabId


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out