Link to home
Start Free TrialLog in
Avatar of Isaac
IsaacFlag for United States of America

asked on

Top Navigation

Hi,

I am trying to add a tab to the top navigation of my site.  When i try and add a heading in the "Navigation Editing and Sorting" section, nothing happens.  Even if I put a check in the box for 'show subsites' and/or 'show pages'.  Any ideas why?

User generated image
Thanks!
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Hi,
which SharePoint version and edition?
What is the site template / which features have been activated (like publishing)?

Do you get a Javascript error (in IE visible in the bottom left corner)?

Could you try to open this configuration page with Google Chrome and watch for any scripting errors.

HTH
Rainer
Avatar of Isaac

ASKER

The following features have been activated 'Office SharePoint Server Enterprise Site Collection features', 'Office SharePoint Server Publishing Infrastructure' and 'Office SharePoint Server Standard Site Collection features'

The javascript error I get says
Element not found.
init.js
Code: 0


I'll try the chrome next.
Hi,
I had once an issue with the navigation in MOSS 2007 - but I think this part has not changed (just the way the final nav gets rendered).

It seems that one entry in your navigation is not correct and therefore you see nothing.

To solve the issue it gets a little bit complicated but lets try to explain:
I opened the page and set a breakpoint in the Javascript code in that area where the navigation content is generated. In SP2010 it is on the main page inside the function
initializeHierarchicalListBox

Open in new window

There it tries to generate the entries.
The first part is to register the different types of navigation entries - and that was the issue the last time as one navigation entry used a type which did not exist in this list.

The types are created using this function call:
hierarchicalListBox.registerType(...

Open in new window


The function itself is from the script file:
/_layouts/1033/hierarchicallistbox.js

The navigation entries are generated using this call/object:
... = new NavigationNode(...

Open in new window

which is defined in the same file as above.

Now to solve the issue I had to dynamically modify the Javascript object and set the type to an existing one - then I could delete this orphaned entry through the UI and start recreating the navigation.

Hope this makes a little bit sense to you.

KR
Rainer
ASKER CERTIFIED SOLUTION
Avatar of Isaac
Isaac
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Isaac

ASKER

Found a solution online.