SlideShare uma empresa Scribd logo
1 de 21
SharePoint 2010
 Session - 2

By: Usman Zafar Malik
[MCTS: MOSS 2007], [MSCBSS: CRM 3.0 / 4.0], MCP
SharePoint 2010 Master Page Development
Types of Master Pages
1- Application Master Pages
      Deals with your custom Site Look and Feel

2- System Master Pages
      Deal with SharePoint System Pages

Commonly used Master Pages

 v4.master
    - (New Blue Ribbon Bar, SharePoint 2010 Master Page)
 default.master
     - Sites upgraded from SharePoint 2007 use this unless they are changed to use a v4 version)
 minimal.master
     - Master page contains almost nothing. It is used by the Search Center and Office Web
     Applications. commonly referred to as Starter Master Pages in SharePoint 2010.
Mandatory Placeholders
Placeholder Control            Description                                  New
PlaceHolderQuickLaunchTop      The top of the Quick Launch menu.
PlaceHolderQuickLaunchBottom The bottom of the Quick Launch menu.
PlaceHolderPageTitle           The title of the site.
PlaceHolderAdditionalPageHead A placeholder in the head section of the
                              page used to add extra components such as
                              ECMAScript (JavaScript, JScript) and
                              Cascading Style Sheets (CSS) to the page.
PlaceHolderBodyAreaClass       The class of the body area.
SPNavigation                   A control used for additional page editing
                               controls.
PlaceHolderSiteName            The name of the site where the current
                               page resides.
Mandatory Placeholders
Placeholder Control               Description                                     New
PlaceHolderPageTitleInTitleArea   The title of the page, which appears in
                                  the title area on the page.
PlaceHolderPageDescription        The description of the current page.
PlaceHolderSearchArea             The section of the page for the search
                                  controls.
PlaceHolderGlobalNavigation       The breadcrumb control on the page.
PlaceHolderTitleBreadcrumb        The breadcrumb text for the breadcrumb
                                  control.
PlaceHolderGlobalNavigationSite   The list of subsites and sibling sites in the
Map                               global navigation on the page.
PlaceHolderTopNavBar              The container used to hold the top
                                  navigation bar.
Mandatory Placeholders
Placeholder Control              Description                                   New
PlaceHolderHorizontalNav         The navigation menu that is inside the
                                 top navigation bar.
PlaceHolderLeftNavBarDataSource The placement of the data source used
                                to populate the left navigation bar.
PlaceHolderCalendarNavigator     The date picker used when a calendar is
                                 visible on the page.
PlaceHolderLeftNavBarTop         The top section of the left navigation bar.
PlaceHolderLeftNavBar            The Quick Launch bar.
PlaceHolderLeftActions           The additional objects above the Quick
                                 Launch bar.
PlaceHolderMain                  The main content of the page.
Mandatory Placeholders
Placeholder Control         Description                                    New
PlaceHolderFormDigest       The container where the page form
                            digest control is stored.
PlaceHolderUtilityContent   The additional content at the bottom of
                            the page. This is outside of the form tag.
PlaceHolderTitleAreaClass   The class for the title area. This is now in
                            the head tag. Any customizations that
                            add a WebPartZone in a content tag to
                            this placeholder will cause an error on
                            the page.
Mandatory Placeholders (backward compatibility)
Placeholder Control           Description                                New
PlaceHolderPageImage          This placeholder does not appear as part
                              of the UI and must be present for
                              backward compatibility.
PlaceHolderTitleLeftBorder    This placeholder does not appear as part
                              of the UI and must be present for
                              backward compatibility.
PlaceHolderMiniConsole        This placeholder does not appear as part
                              of the UI and must be present for
                              backward compatibility.
PlaceHolderTitleRightMargin   This placeholder does not appear as part
                              of the UI and must be present for
                              backward compatibility.
Mandatory Placeholders (backward compatibility)
Placeholder Control             Description                                New
PlaceHolderTitleAreaSeparator   This placeholder does not appear as part
                                of the UI and must be present for
                                backward compatibility.
PlaceHolderNavSpacer            This placeholder does not appear as part
                                of the UI and must be present for
                                backward compatibility.
PlaceHolderLeftNavBarBorder     This placeholder does not appear as part
                                of the UI and must be present for
                                backward compatibility.
PlaceHolderBodyLeftBorder       This placeholder does not appear as part
                                of the UI and must be present for
                                backward compatibility.
Mandatory Placeholders (backward compatibility)
Placeholder Control          Description                                New
PlaceHolderBodyRightMargin   This placeholder does not appear as part
                             of the UI and must be present for
                             backward compatibility.
Master Page in Code Behind Case

<%@ Assembly Name=“DLL Name, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=35ea4244489a016b" %>

<%@ Master language="C#"
Inherits=“CompleteNamespace.CodeBehind.MasterPages.CorporateMasterClass" %>
Master Page For Dialog Pages
class="s4-notdlg"
--------------------------------------
It goes in every div that you don't want to show in a dialog box.
Example: Common places would be the logo, navigation, and footer.
Master Page for Dialog Pages
How to Hide Top Bar, Ribbon, Quick Launch in SharePoint 2010
------------------------------------------------------------------------------------------------------------------
<style type="text/css">
   #s4-ribbonrow, .ms-cui-topBar2, .s4-notdlg, .s4-pr s4-ribbonrowhidetitle, .s4-notdlg
noindex, #ms-cui-ribbonTopBars, #s4-titlerow, #s4-pr s4-notdlg s4-titlerowhidetitle, #s4-
leftpanel-content {display:none !important;}
   .s4-ca{margin-left:0px !important; margin-right:0px !important;}
</style>
Master Page CSS
Specifying CSS files
------------------------------------------------------------------------------------------------------------------
<link href="/Style Library/IntranetCSS/Corporate-Master.css" rel="stylesheet"
type="text/css" />

<Sharepoint:CssRegistration name = "<% $SPUrl:~SiteCollection/Style
Library/AteaIntranetCSS/MyCustomCssFile.css %>" runat="server" after="corev4.css"
></Sharepoint:CssRegistration>

• after=“corev4.css”  load this custom css file after this specified css file “corev4.css”
• $SPUrl:~SiteCollection  Path started from Site Collection (Top Level Site)

”~SiteCollection” referes to the root site of the site collection.
”~Site” refers to the context of the current site which may be a sub-site also.
Master Page Javascript
Specifying Script files
------------------------------------------------------------------------------------------------------------------

Normal Way

<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>

Automatically generate Script tag

<asp:ScriptReference Path="<%$SPUrl:~SiteCollection/Style Library/scripts/jquery-
1.5.min.js%>"></asp:ScriptReference>
Master Page User Control
Specifying User Controls in Master Page
------------------------------------------------------------------------------------------------------------------
<%@ Register src = "~/_controltemplates/MyIntranet.Controls.UC/ucTopNav.ascx"
tagname="ucTopNav" tagprefix="uc1" %>
Master Page Web Control
Specifying Web Controls in Master Page
------------------------------------------------------------------------------------------------------------------
<%@ Register TagPrefix=“MyInranet" Namespace=“MyIntranet.Controls.WebControls"
Assembly=“MyIntranet.Controls, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=381ced654b713b32" %>
Master Page Delegate Controls
Delegate Controls
------------------------------------------------------------------------------------------------------------------
A delegate control defines a region in an “.aspx” page that allows the content to be
replaced with our custom content. This custom content is created via a SharePoint
feature, and when deployed and activated, replaces the standard content at runtime

Example: <SharePoint:DelegateControl runat=”server” ControlId=”GlobalNavigation”/>
 ControlId value determines what delegate control.
 Global Navigation bar has a ControlId value of GlobalNavigation
Master Page Delegate Controls
Master Page Delegate Controls




<Control Id = “GlobalNavigation” Sequence=”90”
ControlSrc=”~/_ControlTemplates/ucGlobNavDelegateControl.ascx” />

 Sequence should be less than 100.
 The ControlSrc value indicates the location to our custom delegate control.
Thanks !

Mais conteúdo relacionado

Destaque

Atenei sostenibili, università e sostenibilità: esperienze a confronto
Atenei sostenibili, università e sostenibilità: esperienze a confrontoAtenei sostenibili, università e sostenibilità: esperienze a confronto
Atenei sostenibili, università e sostenibilità: esperienze a confrontoeAmbiente
 
Presentation Moss 2007 Usman
Presentation Moss 2007 UsmanPresentation Moss 2007 Usman
Presentation Moss 2007 UsmanUsman Zafar Malik
 
Costruire e monitorare: sostenibilità innovativa nelle città
Costruire e monitorare: sostenibilità innovativa nelle cittàCostruire e monitorare: sostenibilità innovativa nelle città
Costruire e monitorare: sostenibilità innovativa nelle cittàeAmbiente
 
SharePoint 2010 Training Session 5
SharePoint 2010 Training Session 5SharePoint 2010 Training Session 5
SharePoint 2010 Training Session 5Usman Zafar Malik
 
SharePoint 2010 Training Session 4
SharePoint 2010 Training Session 4SharePoint 2010 Training Session 4
SharePoint 2010 Training Session 4Usman Zafar Malik
 
SharePoint 2010 Training Session 6
SharePoint 2010 Training Session 6SharePoint 2010 Training Session 6
SharePoint 2010 Training Session 6Usman Zafar Malik
 
SharePoint 2010 Training Session 1
SharePoint 2010 Training Session 1SharePoint 2010 Training Session 1
SharePoint 2010 Training Session 1Usman Zafar Malik
 

Destaque (8)

Atenei sostenibili, università e sostenibilità: esperienze a confronto
Atenei sostenibili, università e sostenibilità: esperienze a confrontoAtenei sostenibili, università e sostenibilità: esperienze a confronto
Atenei sostenibili, università e sostenibilità: esperienze a confronto
 
Presentation Moss 2007 Usman
Presentation Moss 2007 UsmanPresentation Moss 2007 Usman
Presentation Moss 2007 Usman
 
Costruire e monitorare: sostenibilità innovativa nelle città
Costruire e monitorare: sostenibilità innovativa nelle cittàCostruire e monitorare: sostenibilità innovativa nelle città
Costruire e monitorare: sostenibilità innovativa nelle città
 
Presentatie
PresentatiePresentatie
Presentatie
 
SharePoint 2010 Training Session 5
SharePoint 2010 Training Session 5SharePoint 2010 Training Session 5
SharePoint 2010 Training Session 5
 
SharePoint 2010 Training Session 4
SharePoint 2010 Training Session 4SharePoint 2010 Training Session 4
SharePoint 2010 Training Session 4
 
SharePoint 2010 Training Session 6
SharePoint 2010 Training Session 6SharePoint 2010 Training Session 6
SharePoint 2010 Training Session 6
 
SharePoint 2010 Training Session 1
SharePoint 2010 Training Session 1SharePoint 2010 Training Session 1
SharePoint 2010 Training Session 1
 

Semelhante a SharePoint 2010 Training Session 2

Deep Dive into Xamarin.Forms Shell @ Xamarin Summit Brasil 2019
Deep Dive into Xamarin.Forms Shell @ Xamarin Summit Brasil 2019Deep Dive into Xamarin.Forms Shell @ Xamarin Summit Brasil 2019
Deep Dive into Xamarin.Forms Shell @ Xamarin Summit Brasil 2019Alejandro Ruiz Varela
 
Advanced SharePoint 2010 and 2013 Web Part Development by Rob Windsor - SPTec...
Advanced SharePoint 2010 and 2013 Web Part Development by Rob Windsor - SPTec...Advanced SharePoint 2010 and 2013 Web Part Development by Rob Windsor - SPTec...
Advanced SharePoint 2010 and 2013 Web Part Development by Rob Windsor - SPTec...SPTechCon
 
Infinum Android Talks #13 - Design Support Library by Ivan Markusi
Infinum Android Talks #13 - Design Support Library by Ivan MarkusiInfinum Android Talks #13 - Design Support Library by Ivan Markusi
Infinum Android Talks #13 - Design Support Library by Ivan MarkusiInfinum
 
Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...SPTechCon
 
Oracle adf performance tips
Oracle adf performance tipsOracle adf performance tips
Oracle adf performance tipsVinay Kumar
 
11 asp.net session16
11 asp.net session1611 asp.net session16
11 asp.net session16Niit Care
 
The EffiChange XPager Suite: Understanding XPages Scaffolding
The EffiChange XPager Suite: Understanding XPages ScaffoldingThe EffiChange XPager Suite: Understanding XPages Scaffolding
The EffiChange XPager Suite: Understanding XPages ScaffoldingEffiChange LLC
 
Liftweb
LiftwebLiftweb
LiftwebScalac
 
A Comprehensive Guide of Flutter AppBar Widget.pdf
A Comprehensive Guide of Flutter AppBar Widget.pdfA Comprehensive Guide of Flutter AppBar Widget.pdf
A Comprehensive Guide of Flutter AppBar Widget.pdfgetwidget
 
SharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and EventsSharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and EventsMohan Arumugam
 
Design and Development performance considerations
Design and Development performance considerationsDesign and Development performance considerations
Design and Development performance considerationsElaine Van Bergen
 
WAI-ARIA is More Than Accessibility
WAI-ARIA is More Than AccessibilityWAI-ARIA is More Than Accessibility
WAI-ARIA is More Than Accessibility偉格 高
 
jQuery Mobile
jQuery MobilejQuery Mobile
jQuery Mobilemowd8574
 
Asp Net Advance Topics
Asp Net Advance TopicsAsp Net Advance Topics
Asp Net Advance TopicsAli Taki
 
Tuning and optimizing webcenter spaces application white paper
Tuning and optimizing webcenter spaces application white paperTuning and optimizing webcenter spaces application white paper
Tuning and optimizing webcenter spaces application white paperVinay Kumar
 
Master UX from design to prototype
Master UX from design to prototypeMaster UX from design to prototype
Master UX from design to prototypeSalvatore Iaconesi
 
Struts Intro Course(1)
Struts Intro Course(1)Struts Intro Course(1)
Struts Intro Course(1)wangjiaz
 

Semelhante a SharePoint 2010 Training Session 2 (20)

Deep Dive into Xamarin.Forms Shell @ Xamarin Summit Brasil 2019
Deep Dive into Xamarin.Forms Shell @ Xamarin Summit Brasil 2019Deep Dive into Xamarin.Forms Shell @ Xamarin Summit Brasil 2019
Deep Dive into Xamarin.Forms Shell @ Xamarin Summit Brasil 2019
 
Advanced SharePoint 2010 and 2013 Web Part Development by Rob Windsor - SPTec...
Advanced SharePoint 2010 and 2013 Web Part Development by Rob Windsor - SPTec...Advanced SharePoint 2010 and 2013 Web Part Development by Rob Windsor - SPTec...
Advanced SharePoint 2010 and 2013 Web Part Development by Rob Windsor - SPTec...
 
Infinum Android Talks #13 - Design Support Library by Ivan Markusi
Infinum Android Talks #13 - Design Support Library by Ivan MarkusiInfinum Android Talks #13 - Design Support Library by Ivan Markusi
Infinum Android Talks #13 - Design Support Library by Ivan Markusi
 
Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
 
Oracle adf performance tips
Oracle adf performance tipsOracle adf performance tips
Oracle adf performance tips
 
11 asp.net session16
11 asp.net session1611 asp.net session16
11 asp.net session16
 
The EffiChange XPager Suite: Understanding XPages Scaffolding
The EffiChange XPager Suite: Understanding XPages ScaffoldingThe EffiChange XPager Suite: Understanding XPages Scaffolding
The EffiChange XPager Suite: Understanding XPages Scaffolding
 
react-en.pdf
react-en.pdfreact-en.pdf
react-en.pdf
 
Liftweb
LiftwebLiftweb
Liftweb
 
CAF & Portlet Development Notes
CAF & Portlet Development NotesCAF & Portlet Development Notes
CAF & Portlet Development Notes
 
A Comprehensive Guide of Flutter AppBar Widget.pdf
A Comprehensive Guide of Flutter AppBar Widget.pdfA Comprehensive Guide of Flutter AppBar Widget.pdf
A Comprehensive Guide of Flutter AppBar Widget.pdf
 
SharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and EventsSharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and Events
 
Design and Development performance considerations
Design and Development performance considerationsDesign and Development performance considerations
Design and Development performance considerations
 
WAI-ARIA is More Than Accessibility
WAI-ARIA is More Than AccessibilityWAI-ARIA is More Than Accessibility
WAI-ARIA is More Than Accessibility
 
jQuery Mobile
jQuery MobilejQuery Mobile
jQuery Mobile
 
Asp Net Advance Topics
Asp Net Advance TopicsAsp Net Advance Topics
Asp Net Advance Topics
 
HTML5 Accessibility
HTML5 AccessibilityHTML5 Accessibility
HTML5 Accessibility
 
Tuning and optimizing webcenter spaces application white paper
Tuning and optimizing webcenter spaces application white paperTuning and optimizing webcenter spaces application white paper
Tuning and optimizing webcenter spaces application white paper
 
Master UX from design to prototype
Master UX from design to prototypeMaster UX from design to prototype
Master UX from design to prototype
 
Struts Intro Course(1)
Struts Intro Course(1)Struts Intro Course(1)
Struts Intro Course(1)
 

Último

Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jNeo4j
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxFIDO Alliance
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfFIDO Alliance
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingScyllaDB
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Patrick Viafore
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideStefan Dietze
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfFIDO Alliance
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxFIDO Alliance
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...panagenda
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераMark Opanasiuk
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireExakis Nelite
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...ScyllaDB
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxFIDO Alliance
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform EngineeringMarcus Vechiato
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxFIDO Alliance
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfFIDO Alliance
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceSamy Fodil
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfFIDO Alliance
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentationyogeshlabana357357
 

Último (20)

Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4j
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 

SharePoint 2010 Training Session 2

  • 1. SharePoint 2010 Session - 2 By: Usman Zafar Malik [MCTS: MOSS 2007], [MSCBSS: CRM 3.0 / 4.0], MCP
  • 2. SharePoint 2010 Master Page Development
  • 3. Types of Master Pages 1- Application Master Pages  Deals with your custom Site Look and Feel 2- System Master Pages  Deal with SharePoint System Pages Commonly used Master Pages  v4.master - (New Blue Ribbon Bar, SharePoint 2010 Master Page)  default.master - Sites upgraded from SharePoint 2007 use this unless they are changed to use a v4 version)  minimal.master - Master page contains almost nothing. It is used by the Search Center and Office Web Applications. commonly referred to as Starter Master Pages in SharePoint 2010.
  • 4. Mandatory Placeholders Placeholder Control Description New PlaceHolderQuickLaunchTop The top of the Quick Launch menu. PlaceHolderQuickLaunchBottom The bottom of the Quick Launch menu. PlaceHolderPageTitle The title of the site. PlaceHolderAdditionalPageHead A placeholder in the head section of the page used to add extra components such as ECMAScript (JavaScript, JScript) and Cascading Style Sheets (CSS) to the page. PlaceHolderBodyAreaClass The class of the body area. SPNavigation A control used for additional page editing controls. PlaceHolderSiteName The name of the site where the current page resides.
  • 5. Mandatory Placeholders Placeholder Control Description New PlaceHolderPageTitleInTitleArea The title of the page, which appears in the title area on the page. PlaceHolderPageDescription The description of the current page. PlaceHolderSearchArea The section of the page for the search controls. PlaceHolderGlobalNavigation The breadcrumb control on the page. PlaceHolderTitleBreadcrumb The breadcrumb text for the breadcrumb control. PlaceHolderGlobalNavigationSite The list of subsites and sibling sites in the Map global navigation on the page. PlaceHolderTopNavBar The container used to hold the top navigation bar.
  • 6. Mandatory Placeholders Placeholder Control Description New PlaceHolderHorizontalNav The navigation menu that is inside the top navigation bar. PlaceHolderLeftNavBarDataSource The placement of the data source used to populate the left navigation bar. PlaceHolderCalendarNavigator The date picker used when a calendar is visible on the page. PlaceHolderLeftNavBarTop The top section of the left navigation bar. PlaceHolderLeftNavBar The Quick Launch bar. PlaceHolderLeftActions The additional objects above the Quick Launch bar. PlaceHolderMain The main content of the page.
  • 7. Mandatory Placeholders Placeholder Control Description New PlaceHolderFormDigest The container where the page form digest control is stored. PlaceHolderUtilityContent The additional content at the bottom of the page. This is outside of the form tag. PlaceHolderTitleAreaClass The class for the title area. This is now in the head tag. Any customizations that add a WebPartZone in a content tag to this placeholder will cause an error on the page.
  • 8. Mandatory Placeholders (backward compatibility) Placeholder Control Description New PlaceHolderPageImage This placeholder does not appear as part of the UI and must be present for backward compatibility. PlaceHolderTitleLeftBorder This placeholder does not appear as part of the UI and must be present for backward compatibility. PlaceHolderMiniConsole This placeholder does not appear as part of the UI and must be present for backward compatibility. PlaceHolderTitleRightMargin This placeholder does not appear as part of the UI and must be present for backward compatibility.
  • 9. Mandatory Placeholders (backward compatibility) Placeholder Control Description New PlaceHolderTitleAreaSeparator This placeholder does not appear as part of the UI and must be present for backward compatibility. PlaceHolderNavSpacer This placeholder does not appear as part of the UI and must be present for backward compatibility. PlaceHolderLeftNavBarBorder This placeholder does not appear as part of the UI and must be present for backward compatibility. PlaceHolderBodyLeftBorder This placeholder does not appear as part of the UI and must be present for backward compatibility.
  • 10. Mandatory Placeholders (backward compatibility) Placeholder Control Description New PlaceHolderBodyRightMargin This placeholder does not appear as part of the UI and must be present for backward compatibility.
  • 11. Master Page in Code Behind Case <%@ Assembly Name=“DLL Name, Version=1.0.0.0, Culture=neutral, PublicKeyToken=35ea4244489a016b" %> <%@ Master language="C#" Inherits=“CompleteNamespace.CodeBehind.MasterPages.CorporateMasterClass" %>
  • 12. Master Page For Dialog Pages class="s4-notdlg" -------------------------------------- It goes in every div that you don't want to show in a dialog box. Example: Common places would be the logo, navigation, and footer.
  • 13. Master Page for Dialog Pages How to Hide Top Bar, Ribbon, Quick Launch in SharePoint 2010 ------------------------------------------------------------------------------------------------------------------ <style type="text/css"> #s4-ribbonrow, .ms-cui-topBar2, .s4-notdlg, .s4-pr s4-ribbonrowhidetitle, .s4-notdlg noindex, #ms-cui-ribbonTopBars, #s4-titlerow, #s4-pr s4-notdlg s4-titlerowhidetitle, #s4- leftpanel-content {display:none !important;} .s4-ca{margin-left:0px !important; margin-right:0px !important;} </style>
  • 14. Master Page CSS Specifying CSS files ------------------------------------------------------------------------------------------------------------------ <link href="/Style Library/IntranetCSS/Corporate-Master.css" rel="stylesheet" type="text/css" /> <Sharepoint:CssRegistration name = "<% $SPUrl:~SiteCollection/Style Library/AteaIntranetCSS/MyCustomCssFile.css %>" runat="server" after="corev4.css" ></Sharepoint:CssRegistration> • after=“corev4.css”  load this custom css file after this specified css file “corev4.css” • $SPUrl:~SiteCollection  Path started from Site Collection (Top Level Site) ”~SiteCollection” referes to the root site of the site collection. ”~Site” refers to the context of the current site which may be a sub-site also.
  • 15. Master Page Javascript Specifying Script files ------------------------------------------------------------------------------------------------------------------ Normal Way <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> Automatically generate Script tag <asp:ScriptReference Path="<%$SPUrl:~SiteCollection/Style Library/scripts/jquery- 1.5.min.js%>"></asp:ScriptReference>
  • 16. Master Page User Control Specifying User Controls in Master Page ------------------------------------------------------------------------------------------------------------------ <%@ Register src = "~/_controltemplates/MyIntranet.Controls.UC/ucTopNav.ascx" tagname="ucTopNav" tagprefix="uc1" %>
  • 17. Master Page Web Control Specifying Web Controls in Master Page ------------------------------------------------------------------------------------------------------------------ <%@ Register TagPrefix=“MyInranet" Namespace=“MyIntranet.Controls.WebControls" Assembly=“MyIntranet.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=381ced654b713b32" %>
  • 18. Master Page Delegate Controls Delegate Controls ------------------------------------------------------------------------------------------------------------------ A delegate control defines a region in an “.aspx” page that allows the content to be replaced with our custom content. This custom content is created via a SharePoint feature, and when deployed and activated, replaces the standard content at runtime Example: <SharePoint:DelegateControl runat=”server” ControlId=”GlobalNavigation”/>  ControlId value determines what delegate control.  Global Navigation bar has a ControlId value of GlobalNavigation
  • 20. Master Page Delegate Controls <Control Id = “GlobalNavigation” Sequence=”90” ControlSrc=”~/_ControlTemplates/ucGlobNavDelegateControl.ascx” />  Sequence should be less than 100.  The ControlSrc value indicates the location to our custom delegate control.