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

I know how to hide the quicklaunch. My scenario is this: I have built a custom quicklaunch that i show to all users but i only won't some contributors to see the default quicklaunch so that they can actually add content to lists and libraries. Is there a way i can wrap some securrity trimming around the default default quicklaunch. Also i read that i can use Target Audience but my site is not a publishing site but a Team site. Any resources or tips ill be greatly appreciated.

Thanks

share|improve this question
add comment

3 Answers

up vote 0 down vote accepted

I took a slightly more complicated approach to this. I needed to hide and display quick launch links on the user profile page based on the user's relationship to the viewer. I did this by:

  1. Used jQuery to hide the link / links
  2. Used jQuery to call a web service and see if the logged in user was the manager of or in an admin group to see if they could view the profile.
  3. Used jQuery to show the links if the second step was true.
share|improve this answer
    
Thanks RWL01. I used Jquery and SPServices> I would try and blog about it if i find time. Cheers –  naijacoder May 24 '12 at 1:50
add comment

You can use the following in your master page to only show the default quicklaunch to Contributors (Users who can add list items)

<SharePoint:UIVersionedContent UIVersion="4" runat="server">
    <ContentTemplate>
        <Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="AddListItems">
            <SharePoint:AspMenu
                  id="V4QuickLaunchMenu"
                  runat="server"
                  EnableViewState="false"
                  DataSourceId="QuickLaunchSiteMap"
                  UseSimpleRendering="true"
                  UseSeparateCss="false"
                  Orientation="Vertical"
                  StaticDisplayLevels="2"
                  MaximumDynamicDisplayLevels="0"
                  SkipLinkText=""
                  CssClass="s4-ql" />
        </Sharepoint:SPSecurityTrimmedControl>
    </ContentTemplate>
</SharePoint:UIVersionedContent>
share|improve this answer
add comment

I've done this before by doing the following:

  1. Customize the masterpage to have the quicklaunch as a delegate control
  2. Create an ascx file that has the quicklaunch controls in it from the masterpage.
  3. Include some inline code to show the default quicklaunch controls or your own.
  4. Modify your web.config to allow inline code in your ascx file

    PageParserPath VirtualPath="/_controltemplates/Custom/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true"

With this setup you can have a feature that turns on your customization for any site that you need it.

share|improve this answer
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.