[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Hide navigation in SharePoint Foundation 2010

Posted on 2011-04-28
11
Medium Priority
?
1,233 Views
Last Modified: 2012-05-11
I am trying to hide certain navigation options on the navigation bar according to which SharePoint group a user is in. From what I can tell, this is an option that you need the publishing feature for which is only available in the paid version. Anyone know if this can be done in Foundations (free version)?
0
Comment
Question by:whitlockit
  • 6
  • 5
11 Comments
 
LVL 38

Expert Comment

by:Justin Smith
ID: 35485997
Are you trying to hide sub sites, or lists?  

If it's something that isn't security trimmed by default (like the items above) there isn't really a way to do it out of the box with Foundation.
0
 

Author Comment

by:whitlockit
ID: 35486118
I want to hide sub sites from the drop down menus and even remove options from the navigation bar.

ex:

site1 site2 site3 site4

If the above is the navigation bar and you only have rites for site1, i want 2, 3 and 4 to be hidden. Easy enough to do with the full version, but i don't have a clue if it can be done in Foundations.
0
 

Author Comment

by:whitlockit
ID: 35486173
rights not rites
0
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
LVL 38

Expert Comment

by:Justin Smith
ID: 35486200
This should happen by default, it's out of the box functionality.  UNLESS, you have manually created the navigation links.  In that case, security trimming won't happen.
0
 

Author Comment

by:whitlockit
ID: 35486236
I had to add a new data source to the navigation in the master page because drop down menus are not available in the free version of SharePoint (Foundation 2010). They were available in WSS but are now part of the publishing feature. I am not sure where to find security trimming in Foundations. It's probably staring me in the face, but, I am no SharePoint guru, lol.
0
 
LVL 38

Expert Comment

by:Justin Smith
ID: 35486294
If you've manually added them, then SharePoint sees them as "external" sites, so no security trimming will be done.  This is by design.

If you are or know of a seasoned developer, he can probably recreate the navigation items in PowerShell and set the "isExternal" property to "No".  There is no way to do this in the GUI in SharePoint Foundation.
0
 

Author Comment

by:whitlockit
ID: 35486319
I had a feeling I would have to code my way out of my current situation, but was hoping for an easier solution. Where would the trimming feature for hiding navigation elements be located if I was using an unmodified menu?
0
 
LVL 38

Expert Comment

by:Justin Smith
ID: 35486337
There isn't a featuer.  It works out of the box.  No config necessary.
0
 

Author Comment

by:whitlockit
ID: 35486351
So when I create the page it get the option to hide groups? Is that correct?
0
 
LVL 38

Accepted Solution

by:
Justin Smith earned 2000 total points
ID: 35486374
Out of the box, without any configuration needed, if a user does NOT have access to a subsite, he will NOT see a link to the site in the nav bars.  Nothing is needed to make this works, it just works, that is by design.

However, if you are manually creating the links in the navigation, and not letting SharePoint do it when the site is provisioned, SharePoint will see the links as External Links, and will NOT do the security trimming.  That is when you have to do the Powershell that I mentioned.

Clear?
0
 

Author Comment

by:whitlockit
ID: 35486415
Sharepoint is creating the links. I went in through sharepoint designer and added a new datasource (sharePoint data source). Once I did that I was able to create sub menus as they are not available without doing so (unless I completely missed something). This seems to be the only way to have drop down menus in Foundation (WSS had it out of the box). Sharepoint is still creating the menus internally. Once I added the sharepoint data source, any new pages appear in the navigation upon creation.

As for what you are saying. I might be trying to fix something that is not broken.

I see what you are saying and appreciate all of your help.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cancel future meetings from user mailboxes in Office 365 using Remove-CalendarEvents
Microsoft has changed the look and feel of Azure AD and Microsoft account sign-in pages so that you will have a more unified look and feel when moving between the two interfaces.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question