SlideShare a Scribd company logo
1 of 42
An Automated Approach SharePoint 2007 Site Branding  May 26, 2010 NetC 2010
Who Am I? Summer Prisock Extension Disaster Education Network (EDEN) Webmaster Located at the LSU AgCenter in Baton Rouge, LA About 2 ½ years experience working with SharePoint 2007 @grayguitar on Twitter sprisock@agcenter.lsu.edu May 26, 2010 NetC 2010
Quick EDEN Overview EDEN’s Mission The mission of the Extension Disaster Education Network (EDEN) is to share education resources to reduce the impact of natural and man-made disasters. Institutional Members from all 50 states & 3 territories 1862 & 1890 Land Grants, Sea Grants, & NIFA Over 200 delegates from these institutions For more info visit: www.EDEN.lsu.edu May 26, 2010 NetC 2010
Agenda Brief SharePoint Branding Overview Master Page Breakdown Delegate Controls Helpful Tools in Branding The Automated Solution Explained Gotcha’s Demo Q & A’s May 26, 2010 NetC 2010
Brief SharePoint Branding Overview May 26, 2010 NetC 2010
Not Customized/Customized Not Customized (formerly “ghosted”) Lives on the file server not the content database Unedited files shipped with SharePoint Custom files created via features Customized (formerly “unghosted”) Lives in the content database Requires a request to the file system and the database Anything edited or created in SharePoint designer Can be harder to manage Possible post-service pack upgrade problems May 26, 2010 NetC 2010
SharePoint Themes More focused on changing colors and images, not on reorganization. Stored on Web Server Editing a theme requires: Making changes & copying to web server Reapplying the theme to each site that uses Controlling themes available requires editing OOTB file spsthemes.xml on the web server May 26, 2010 NetC 2010
Master Page Breakdown May 26, 2010 NetC 2010
Master Pages Swapping out Master Page for site pages relatively easy ~masterurlefault.master Applied to standard default.aspx page template used in Team Site & Blank site Also used in form pages such as Allitems.aspx and NewItem.aspx ~masterurlustom.master Used in publishing sites Includes all content pages within page libraries of MOSS publishing site Content pages designed to use a dynamic token for the MasterPageFile attribute May 26, 2010 NetC 2010
Master Pages No obvious way to swap out application.master, simple.master, dialog.master, pickerdialog.master Runs out of the LAYOUTS directory Can be addressed by implementing a custom HTTP Module For a great list of which pages use each of these master pages see: http://blogs.msdn.com/bgeoffro/archive/2007/11/12/branding-a-moss-corporate-intranet-portal-part-1a-high-level-overview-terminology-and-approach.aspx There are a set of content placeholders that must be in your master page in order for SharePoint to run properly Better to start with one of the base master pages to ensure you are including the requirements. May 26, 2010 NetC 2010
Master Pages Base Publishing Master Page before Base Publishing Master Page after May 26, 2010 NetC 2010
Delegate Controls May 26, 2010 NetC 2010
What is a DelegateControl? A DelegateControl is a ASP.NET control in SharePoint that acts as a placeholder for content or other controls. Basically just ContentPlaceholders with a SharePoint feature deployment method that can allow for activating content on a page. A lot of SharePoint’s default functionality uses them, ie:  Search Global Links May 26, 2010 NetC 2010
Example #1 CustomDelegate Control May 26, 2010 NetC 2010
Example #2 Custom Delegate Control AdditionalPageHeadDelegateControl May 26, 2010 NetC 2010
EDENInternetBrandingHazardsHeader Feature Figure 1: Feature.xml Figure 2: elements.xml May 26, 2010 NetC 2010
Figure 3: Solution excerpt in Visual Studio May 26, 2010 NetC 2010
Helpful Tools in Branding May 26, 2010 NetC 2010
The Tools SharePoint Designer 2007 Real time view of your master page’s look Firefox’s Firebug add-on Visualize the rendering Inspect elements to see which style is being read Heather Solomon’s blog Stripped down master pages CSS reference sheet Andrew Connel’s SharePoint Project Utility Quick automated folder creation Quick ddf and manifest creation (somewhat automated) May 26, 2010 NetC 2010
The Automated Solution Explained May 26, 2010 NetC 2010
Solution Derived From Automated SharePoint Site Branding by Ted Pattison (C#) http://msdn.microsoft.com/en-us/magazine/cc700347.aspx A stripped down version of my adaption of this solution (VB) will be posted to the LSU AgCenter’s National MOSS Collaboration Wiki this week http://intranet.lsuagcenter.net/sites/team/mosswiki/National%20MOSS%20Repository/ May 26, 2010 NetC 2010
Intro to Automated Solution Three different primary features Central Feature: EDENInternetBranding Scope to a WSS or MOSS site collection & forces the entire solution to apply the branding. 2nd Feature: EDENInternetBrandingWebApplication Scoped to web app level, configured via a feature receiver class & updates the web.config 3rd Feature: EDENInternetBrandingChildSiteInitializer Scope to site level, copies top level site branding properties into the current child site. May 26, 2010 NetC 2010
Intro to Automated Solution Several features for different delegate controls Scoped to site level, specifies what delegate control(s) to display within the specific site Utility Class: BrandManager Contains all the code to apply and remove various branding elements EDENInterntBrandingHTTPModule Checks for enable and then swaps out application.master and simple.master May 26, 2010 NetC 2010
EDENInternetBranding Feature Contains your master page template Page Layouts (optional) May 26, 2010 NetC 2010
Elements manifest file elements.xml Contains provision logic to create an instance of this Master Page template & of you custom page layouts if you choose to include them Provisions a custom action in site settings that links to your custom Branding Manager May 26, 2010 NetC 2010
FeatureReceiverSiteCollection class Contains event handlers that uses the BrandManager class to apply or remove all the various branding elements May 26, 2010 NetC 2010
Contains methods to ensure web application-level feature has been activated or deactivated so that the HttpModule is properly registered or not registered with ASP.NET May 26, 2010 NetC 2010
Utility Class: BrandManager Synchronizes:  pages to link to EDENInternetBranding.master pages to use an alternate CSS file pages to use a custom graphic for the site logo Adds support to swap out the Master Page for application pages May 26, 2010 NetC 2010
Contains several static properties that parse together URLs pointing to various resources. May 26, 2010 NetC 2010
Contains several methods which go through every site in the current site collection and updates each site’s corresponding property. May 26, 2010 NetC 2010
Contains methods that create a custom property on the top level site to indicate if swapping out the Master Page should be enabled or not May 26, 2010 NetC 2010
Custom HTTP Module: EDENBrandingHttpModule.vb Registers an event handler for one of the events in the ASP.NET page life cycle named PreInit May 26, 2010 NetC 2010
May 26, 2010 NetC 2010
EDENInternetBrandingWebApplication Feature Scoped at the web application level Using a feature receiver, it updates the web.config to add the HttpModule entry in each web application May 26, 2010 NetC 2010
FeatureReceiverWebApplication class Function that creates the HttpModule entry Event handlers that add or remove the required HttpModule entry to the web.config May 26, 2010 NetC 2010
EDENInternetBrandingChildSiteInitializerFeature FeatureReceiverChildSite class Contains event handler that copies the top level site’s branding properties into the current child site. May 26, 2010 NetC 2010
Feature stapling is used to get EDENInternetBrandingChildSiteInitializer to activate automatically Stapled to the main EDENInterntBranding feature via FeatureSiteTemplateAssociation element Figure 1:EDENInternetBranding Feature.xml excerpt Figure 2: EDENInternet Brandingstapling.xml excerpt May 26, 2010 NetC 2010
BrandManagement Class Pulls it all together when the user specifies what elements to use on this newly deployed page under site settings May 26, 2010 NetC 2010
“Gotcha’s” May 26, 2010 NetC 2010
Unknown Error Friendly Errors – turn them off; they’re not friendly (when debugging) Open web.config for site Change CallStack status to “true” <SafeModeMaxControls="200" CallStack="true"DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">  Chance CustomErrors to “off” <customErrorsmode="Off" />  May 26, 2010 NetC 2010
Demo May 26, 2010 NetC 2010
Questions May 26, 2010 NetC 2010

More Related Content

Recently uploaded

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
[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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
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
 
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
 

Recently uploaded (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
[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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
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
 
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
 

Featured

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 

Featured (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

Sharepoint 2007 Site Branding: An Automated Approach

  • 1. An Automated Approach SharePoint 2007 Site Branding May 26, 2010 NetC 2010
  • 2. Who Am I? Summer Prisock Extension Disaster Education Network (EDEN) Webmaster Located at the LSU AgCenter in Baton Rouge, LA About 2 ½ years experience working with SharePoint 2007 @grayguitar on Twitter sprisock@agcenter.lsu.edu May 26, 2010 NetC 2010
  • 3. Quick EDEN Overview EDEN’s Mission The mission of the Extension Disaster Education Network (EDEN) is to share education resources to reduce the impact of natural and man-made disasters. Institutional Members from all 50 states & 3 territories 1862 & 1890 Land Grants, Sea Grants, & NIFA Over 200 delegates from these institutions For more info visit: www.EDEN.lsu.edu May 26, 2010 NetC 2010
  • 4. Agenda Brief SharePoint Branding Overview Master Page Breakdown Delegate Controls Helpful Tools in Branding The Automated Solution Explained Gotcha’s Demo Q & A’s May 26, 2010 NetC 2010
  • 5. Brief SharePoint Branding Overview May 26, 2010 NetC 2010
  • 6. Not Customized/Customized Not Customized (formerly “ghosted”) Lives on the file server not the content database Unedited files shipped with SharePoint Custom files created via features Customized (formerly “unghosted”) Lives in the content database Requires a request to the file system and the database Anything edited or created in SharePoint designer Can be harder to manage Possible post-service pack upgrade problems May 26, 2010 NetC 2010
  • 7. SharePoint Themes More focused on changing colors and images, not on reorganization. Stored on Web Server Editing a theme requires: Making changes & copying to web server Reapplying the theme to each site that uses Controlling themes available requires editing OOTB file spsthemes.xml on the web server May 26, 2010 NetC 2010
  • 8. Master Page Breakdown May 26, 2010 NetC 2010
  • 9. Master Pages Swapping out Master Page for site pages relatively easy ~masterurlefault.master Applied to standard default.aspx page template used in Team Site & Blank site Also used in form pages such as Allitems.aspx and NewItem.aspx ~masterurlustom.master Used in publishing sites Includes all content pages within page libraries of MOSS publishing site Content pages designed to use a dynamic token for the MasterPageFile attribute May 26, 2010 NetC 2010
  • 10. Master Pages No obvious way to swap out application.master, simple.master, dialog.master, pickerdialog.master Runs out of the LAYOUTS directory Can be addressed by implementing a custom HTTP Module For a great list of which pages use each of these master pages see: http://blogs.msdn.com/bgeoffro/archive/2007/11/12/branding-a-moss-corporate-intranet-portal-part-1a-high-level-overview-terminology-and-approach.aspx There are a set of content placeholders that must be in your master page in order for SharePoint to run properly Better to start with one of the base master pages to ensure you are including the requirements. May 26, 2010 NetC 2010
  • 11. Master Pages Base Publishing Master Page before Base Publishing Master Page after May 26, 2010 NetC 2010
  • 12. Delegate Controls May 26, 2010 NetC 2010
  • 13. What is a DelegateControl? A DelegateControl is a ASP.NET control in SharePoint that acts as a placeholder for content or other controls. Basically just ContentPlaceholders with a SharePoint feature deployment method that can allow for activating content on a page. A lot of SharePoint’s default functionality uses them, ie: Search Global Links May 26, 2010 NetC 2010
  • 14. Example #1 CustomDelegate Control May 26, 2010 NetC 2010
  • 15. Example #2 Custom Delegate Control AdditionalPageHeadDelegateControl May 26, 2010 NetC 2010
  • 16. EDENInternetBrandingHazardsHeader Feature Figure 1: Feature.xml Figure 2: elements.xml May 26, 2010 NetC 2010
  • 17. Figure 3: Solution excerpt in Visual Studio May 26, 2010 NetC 2010
  • 18. Helpful Tools in Branding May 26, 2010 NetC 2010
  • 19. The Tools SharePoint Designer 2007 Real time view of your master page’s look Firefox’s Firebug add-on Visualize the rendering Inspect elements to see which style is being read Heather Solomon’s blog Stripped down master pages CSS reference sheet Andrew Connel’s SharePoint Project Utility Quick automated folder creation Quick ddf and manifest creation (somewhat automated) May 26, 2010 NetC 2010
  • 20. The Automated Solution Explained May 26, 2010 NetC 2010
  • 21. Solution Derived From Automated SharePoint Site Branding by Ted Pattison (C#) http://msdn.microsoft.com/en-us/magazine/cc700347.aspx A stripped down version of my adaption of this solution (VB) will be posted to the LSU AgCenter’s National MOSS Collaboration Wiki this week http://intranet.lsuagcenter.net/sites/team/mosswiki/National%20MOSS%20Repository/ May 26, 2010 NetC 2010
  • 22. Intro to Automated Solution Three different primary features Central Feature: EDENInternetBranding Scope to a WSS or MOSS site collection & forces the entire solution to apply the branding. 2nd Feature: EDENInternetBrandingWebApplication Scoped to web app level, configured via a feature receiver class & updates the web.config 3rd Feature: EDENInternetBrandingChildSiteInitializer Scope to site level, copies top level site branding properties into the current child site. May 26, 2010 NetC 2010
  • 23. Intro to Automated Solution Several features for different delegate controls Scoped to site level, specifies what delegate control(s) to display within the specific site Utility Class: BrandManager Contains all the code to apply and remove various branding elements EDENInterntBrandingHTTPModule Checks for enable and then swaps out application.master and simple.master May 26, 2010 NetC 2010
  • 24. EDENInternetBranding Feature Contains your master page template Page Layouts (optional) May 26, 2010 NetC 2010
  • 25. Elements manifest file elements.xml Contains provision logic to create an instance of this Master Page template & of you custom page layouts if you choose to include them Provisions a custom action in site settings that links to your custom Branding Manager May 26, 2010 NetC 2010
  • 26. FeatureReceiverSiteCollection class Contains event handlers that uses the BrandManager class to apply or remove all the various branding elements May 26, 2010 NetC 2010
  • 27. Contains methods to ensure web application-level feature has been activated or deactivated so that the HttpModule is properly registered or not registered with ASP.NET May 26, 2010 NetC 2010
  • 28. Utility Class: BrandManager Synchronizes: pages to link to EDENInternetBranding.master pages to use an alternate CSS file pages to use a custom graphic for the site logo Adds support to swap out the Master Page for application pages May 26, 2010 NetC 2010
  • 29. Contains several static properties that parse together URLs pointing to various resources. May 26, 2010 NetC 2010
  • 30. Contains several methods which go through every site in the current site collection and updates each site’s corresponding property. May 26, 2010 NetC 2010
  • 31. Contains methods that create a custom property on the top level site to indicate if swapping out the Master Page should be enabled or not May 26, 2010 NetC 2010
  • 32. Custom HTTP Module: EDENBrandingHttpModule.vb Registers an event handler for one of the events in the ASP.NET page life cycle named PreInit May 26, 2010 NetC 2010
  • 33. May 26, 2010 NetC 2010
  • 34. EDENInternetBrandingWebApplication Feature Scoped at the web application level Using a feature receiver, it updates the web.config to add the HttpModule entry in each web application May 26, 2010 NetC 2010
  • 35. FeatureReceiverWebApplication class Function that creates the HttpModule entry Event handlers that add or remove the required HttpModule entry to the web.config May 26, 2010 NetC 2010
  • 36. EDENInternetBrandingChildSiteInitializerFeature FeatureReceiverChildSite class Contains event handler that copies the top level site’s branding properties into the current child site. May 26, 2010 NetC 2010
  • 37. Feature stapling is used to get EDENInternetBrandingChildSiteInitializer to activate automatically Stapled to the main EDENInterntBranding feature via FeatureSiteTemplateAssociation element Figure 1:EDENInternetBranding Feature.xml excerpt Figure 2: EDENInternet Brandingstapling.xml excerpt May 26, 2010 NetC 2010
  • 38. BrandManagement Class Pulls it all together when the user specifies what elements to use on this newly deployed page under site settings May 26, 2010 NetC 2010
  • 39. “Gotcha’s” May 26, 2010 NetC 2010
  • 40. Unknown Error Friendly Errors – turn them off; they’re not friendly (when debugging) Open web.config for site Change CallStack status to “true” <SafeModeMaxControls="200" CallStack="true"DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false"> Chance CustomErrors to “off” <customErrorsmode="Off" /> May 26, 2010 NetC 2010
  • 41. Demo May 26, 2010 NetC 2010
  • 42. Questions May 26, 2010 NetC 2010