Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

In SP2013 you have the recent entry in the navigation. Is there an easy way to automatically hide/remove this entry?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

Did some additional research and found the answer myself.

var title = SPUtility.GetLocalizedString("$Resources:core,category_Recent", null, web.Language);
SPNavigationNodeCollection nodes = web.Navigation.QuickLaunch;
foreach (SPNavigationNode node in nodes)
{
  if (node.Title.Equals(title))
  {
    node.Delete();
    break;
  }
}
share|improve this answer
add comment

You can manually delete the header from:

Site Settings-> Look and Feel -> Navigation

share|improve this answer
    
I am creating a webtemplate based on a teamsite. Do you know how this can be done by code? –  Remko Mar 7 '13 at 13:20
    
What is the result you are looking for? Should the navigation be inherited from the parent site? –  Vardhaman Deshpande Mar 7 '13 at 14:22
    
I already found and posted the answer I was looking for. Tnx for helping –  Remko Mar 14 '13 at 9:59
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.