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

Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 

Kürzlich hochgeladen (20)

Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 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.