Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

For some reason when a page is created, sometimes the entire site crashes. I'm not sure why this is happening. We have publishing switched on. What I found was that the page has multiple entries in the quick launch menu and because the site is unresponsive its very difficult to use the UI.

The first question is, does anyone kwow why these multiple links are being created? Here is image using from SPM: enter image description here

I was thinking that admins could be manually creating links to unpupublished pages using navigation settings not realising they need to publish or check in newly created page first. Could this be the case?

I tried deleting the links with powershell, I have code that can delete headings, but I wanted to delete links with a specific name within the heading. How can I iterate at child level and delete all links with a certain name?

Found code but requiers modifying: Powershell error while iterating through sites quicklaunch and deleting a specific node

//deleting unwanted
                int nodesCount = nodes.Count;
                for (int nodeIndex = nodesCount; nodeIndex > 0; nodeIndex--)
                {
                    SPNavigationNode spNodes = nodes[nodeIndex - 1];

                    foreach (string unWantedNode in unWantedNodes)
                    {
                        if (spNodes.Title.ToString() == unWantedNode)
                        {
                            spNodes.Delete();
                        }
                    }
                }
share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.