Skip to main content

Migrating Master Page From Moss 2007 to Sharepoint 2010

When upgrading a SharePoint 2007 site – to SharePoint 2010 – the biggest change from a visual perspective is the ribbon – you’ll come to know it as “THAT DAMN RIBBON” !!!

It’s tricky to ‘style’ – and you can’t EDIT a page unless you you’ve included it.

The steps I’ve followed to get it working are :

  • Check your styles being used – and include “NO-DLG” where needed – for any dialog/modal popups.    Upload document,New page,etc 
  • Include style class tags for sections to appear on System Pages also (using the same Master Page)
Styling for 2010 is an much bigger topic – for now, I’m just detailing how to ‘fix’ any pages being shown in a “modal dialog” (and “system pages).
Here’s an example of an upgraded Team Site – looking “alright” apart from some styling bits & pieces (still to do) :

 The new AJAX style popup windows use the same Master Page – but you need some tweaking to avoid this (when clicking “UPLOAD”) :


You’ll notice that the ribbon, left-nav, top-nav and a few other elements should NOT be there. 
The basic fix is to include some CSS class tags – on the specific areas you DON’T want to show.

  • Include the class “s4-notdlg” for any TD or TR tags that you don’t want shown.
  • Or, can wrap these tags in a <DIV class=’s4-notdlg’> tag set 
This correlates to the DLGFRAME.CSS style sheet, located within _LAYOUTS/STYLES.
Here’s an example – with some screen shots to show the result.

1. Include DIV + H1.

<div>
    <h1>This is a cool webpage</h1>
</div>
This shows in BOTH places – ie. the main page – AND – the popup dialog.



2. Include DIV + H1 + NOTDLG class

<div class="s4-notdlg">
    <h1>This is a cool webpage</h1>
</div>
This shows in the main page – but not the popup dialog.



3. System Pages – include DIV + H1 + NOTDLG class
On a system page – like the Site Settings page (\_layouts\settings.aspx) you will see that the same text is begin shown – this operates just like the home master page.
As such, the NOTDLG tag only applies to modal popups (.ms-dialog) – this doesn’t have any impact.

<div class="s4-notdlg">
    <h1>This is a cool webpage</h1>
</div>



4. System Pages – include DIV + H1 + NOTDLG + SKIPRIBBON class
Through some fiddling & testing, I worked out that there’s a similar class tag that you can use to achieve the same result – for System Pages.

<div class="s4-notdlg s4-skipribbonshortcut">
    <h1>SharePoint is very cool</h1>
</div>

This class will have the same effect by hiding the DIV on any system pages – but still show on the HOME page :


 Making use of these tags will allow you to switch on/off certain sections of the Master Page :


  •     Publishing pages – ie. Site Master Page
  •     System pages – ie. System Master Page – for all views and forms
  •     Dialog / popup pages – all making use of the same Master Page (!!)
Hope this is a useful tip – I’ll re-visit some more related to styles for SharePoint 2010 – specifically related to the RIBBON – and how to display it, and have the site “use-able” !

Comments

Popular posts from this blog

Tab Control in Asp.Net

Scenerio: I need your help in designing tab control in   asp.net .My requirement is I need a tab control in   asp.net (C#) like  for example goto my computer ,right click c drive and select properties.we get tabs like general,security etc....... like that i need to design one tab control(no need of any rightclick) in my web page and the database table columns should come as tabs and inseide the tab data of that particular column should come.   Example:Employee master tab1:Employee name.........his name in the tab tab2:Age.............his age tab3:Address........his address   Solution:   You can do this using a simple div <style type="text/css"> .tabs         {             position: relative;             height: 20px;             margin: 0;   ...

AI and Microsoft: Revolutionizing Efficiency in Nonprofit Organizations

  How AI and Microsoft Enhance Efficiency in Nonprofit Organizations In today’s fast-paced world, nonprofit organizations face unique challenges—limited resources, increasing demands, and the constant need to do more with less. But what if technology could be the game-changer they need? In my latest research paper,  "How AI and Microsoft Enhance Efficiency in Nonprofit Organizations" , I explore how cutting-edge technologies like Artificial Intelligence (AI) and Microsoft’s innovative tools are revolutionizing the way nonprofits operate. From streamlining administrative tasks to enhancing donor engagement and optimizing resource allocation, AI and Microsoft’s solutions are empowering nonprofits to focus on what truly matters—their mission. This paper dives deep into real-world examples, practical applications, and the transformative potential of these technologies. Whether you’re a nonprofit professional, a tech enthusiast, or simply curious about the intersection of technolo...

Social tagging overview in Sharepoint 2010

A tag is a word or phrase that identifies an individual piece of information according to a set of attributes or criteria. Tags make it easy to find and share information about a specific subject or task. Social tagging helps users categorize information in ways that are meaningful to them. Social tagging can improve the quality of search results by filtering against specific tags, and it can also connect individuals who want to share information with other users who have like interests. This article describes the social tagging features in Microsoft SharePoint Server 2010. This article does not describe how to configure social tagging features. It also does not discuss how to implement social tagging features as part of an overall social media strategy for an enterprise. About using social tagging features Social tagging features help users to share information and to retrieve relevant, high-quality content more efficiently. Such sharing encourages collaboration and b...