SlideShare ist ein Scribd-Unternehmen logo
1 von 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 !

Weitere ähnliche Inhalte

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Ähnlich wie 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)
 

Kürzlich hochgeladen

Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dashnarutouzumaki53779
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 

Kürzlich hochgeladen (20)

Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dash
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 

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.