SharePoint 2010 | Hide Revert Template Message

This really annoying message keeps poping out, event for anonymous users.

"The current page has been customized from its template."

To fix it, look for "s4-statusbarcontainer" div and wrap it around a SPSecurityTrimmedControl or ASP LoginView

<Sharepoint:SPSecurityTrimmedControl runat="Server" PermissionsString="AddAndCustomizePages">
  <div id="s4-statusbarcontainer">
    <div id="pageStatusBar" class="s4-status-s1">
    </div>
  </div>
</Sharepoint:SPSecurityTrimmedControl>

Comments

  1. the probleme with that approche is that you will hide all status message to users

    ReplyDelete
  2. yes, you'll hide the messages for all users, when they're not logged in, which is something we usually want for public facing sites. let me know if you find other approaches.
    Tiago

    ReplyDelete

Post a Comment

Popular posts from this blog

Mobile development opportunities

Breaking down document locking in SharePoint

Working around X-Frame-Options for iframes