CRM news and views from Simon Jackson

Tuesday, July 17, 2007

WSS3 - Hiding Navigation area

WSS3 / Moss doesn't provide a user interface option for turning off the header or top navigation menu. However, because SharePoint sites use cascading style sheets styles, we can take advantage of cascading style sheets(CSS) and simply hide these items.
To modify the CSS can use a content editor web part. This allows us to add custom content and code that WSS will render on the page. Use the Source Editor enter the following code:
<style type="text/css"> .ms-bodyareaframe { padding: 0px; } .ms-globalbreadcrumb{ display: none; } .ms-globaltitlearea{ display: none; } .ms-bannerContainer{ display: none; } .ms-titleareaframe{ display: none; } .ms-pagetitleareaframe{ display: none; } .ms-leftareacell{ display: none; } </style>

I also wanted to hide the navigation areas so that a custom AllItems.aspx page could be shown inside CRM Account and CRM Contact forms. Unfortunately these pages do not allow WebParts so I used Microsoft Office SharePoint Designer to create a copy of AllItems.aspx and add the hiding CSS directly into the HTML in the page.

Labels: ,

1 Comments:

Blogger annette said...

hi simon,found your pics good.hope your all ok. look forward to seeing you in the near future.sorry i missed you when you last came over,hope you enjoyed your holiday.take care love auntie Annette xxx

28 March 2008 02:37

 

Post a Comment

Links to this post:

Create a Link

<< Home