Friday, November 26, 2010

SharePoint 2010 Master Page Ribbon Hide

Tried a few techniques this one suits me best...

Set the in-line style for both the id="s4-statusbarcontainer" and id="s4-ribbonrow" div's to style="display:none". Then somewhere appropriate below both elements in the master page insert the following:

<Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl" runat="server" PermissionsString="AddAndCustomizePages">
<script type="text/javascript">
document.getElementById("s4-statusbarcontainer").style.display = "block";
document.getElementById("s4-ribbonrow").style.display = "block";
</script>
</Sharepoint:SPSecurityTrimmedControl>


This will cause the ribbon and status notification to be rendered by the browser yet be hidden so the page will still operate normally. If the user is authenticated and allow to modify pages it will render the JavaScript to override the hidden style.

[courtesty of Rich Krott]

Thursday, November 18, 2010

My Personal Sharepoint Archives

I am turning this blog into my own personal tricks section, I am constantly searching the web for tricks on sharepoint, when I find them I usually bookmark the site, well I have been noticing I got alot of bookmarks! So I have been thinking about a way to utilize my blog but give myself a reason to keep blogging, what I came up with is each time I find a tip or trick that worked for me, I will blog it and give the website credit. I figured if you come across my blog in a search engine and are able to use these tips or tricks, then maybe this blog is worth writing and keeping alive.

Lets see how this works out.