SharePoint 2007 MOSS: Remove Site Actions Tab from search page.

indy500fan
indy500fan used Ask the Experts™
on
Friends,

At the suggestion of the following website, I have added the code to remove the "View Site Settings" and the "Site Actions" tab from the default.master.

http://www.sharepointkings.com/2008/11/how-to-remove-site-actions-and-view-all.html

Here is the code reference:

<SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="ManageSubwebs">
<<SharePoint:SiteActions control>>
</SharePoint:SPSecurityTrimmedControl>

This has removed those items from all sites except from the Search Results page.  Any ideas on why this is still showing here?  If so, any suggestions on how to remove it from this single page?  SearchResults.aspx is using default.master as it's template.

We have restarted IIS, and made sure that the browser doesn't have something cached, but the Site Actions tab still shows up.  Curiosly, the code changes to remove "View All Site Content" worked on the SearchResults page, when the "Site Action" did not.  Again, it is only occuring on this single page.

Thanks for you help in advance!

Eric
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Ivan PadabedDirector, Technology Solutions

Commented:
Please take a look on page name in the browser to find ASPX file for the search results page (OSSSearchResults.aspx, correct?). It is uses different Masterpage, so open this ASPX file to find Master reference (~/_layouts/application.master, correct?), then modify this Masterpage with SecurityTrimmedControl. :)

Author

Commented:
Sounds logical; however, when I modified the other application.master file, it had the SiteActions reference in there.

In the ~/_layouts/application.master file, I can't find anything to do with the SiteAction (which is where I did the SecurityTrimmedControl).

Any other thoughts?
Director, Technology Solutions
Commented:
hmm. ok, looks like it is using TopNavBar control which contains SiteActions inside. you need to modify TopNavBar.ascx to fix this.
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

Author

Commented:
Let me try that, and I'll get back with you.

Author

Commented:
Sorry, I got busy with another project and forgot about this.   Nothing has worked..  Any other suggestions?

Author

Commented:
None of the suggestions worked, but they led us down the path to find it.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial