I want to create toolbar for my sharepoint application. It must have following
two attributes.
1. It should be localized. i.e. Render its text from a resource file.
2. It should be security trimmed. i.e. If the logged-in user does not
have permissions to the URL (url points to a page stored in a
document library) menu should not be available to the user.
I tried following approach.
1. Create a siteMap file and configure this as datasource for
SPSiteNavigationProvider. This approach allows me to localize the
menu however does not enable security trimming ( In fact security
trimming can be configured for windows group but not for sharepoint
groups.
2. At the site provision event I create the navigation using
following API
SPWeb.Navigation.GlobalNavigation.
This approach provides me the security trimming however it does not
allow me to localize the menu text.
Could you please help me with any solution which can allow me to
localize as well as security trim my toolbar.
Do you know someone who can help? Share a link to this thread on twitter, or facebook.