Jon Flanders Senior Consultant MCW Technologies

Slides:



Advertisements
Similar presentations
Learn the techniques to create a SharePoint 2010 web site from an existing branded web site.
Advertisements

MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Internet Explorer 8 For Developers Gal Kogman BNL
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Larry Mead Microsoft Corp. Jon Flanders Session Code: INT203.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

2010 Microsoft BI Conference
How We Do Language Design at Microsoft (C#, Visual Basic, F#)
MIX 09 5/29/ :31 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Tech·Ed  North America /11/ :01 AM SESSION CODE: DEV405
6/12/ :53 PM DEV311 Deep Dive into Microsoft Visual Studio Team Foundation Server 2010 Reporting Steven Borg, Principal ALM Consultant Northwest.
6/13/2018 1:23 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
2010 Microsoft BI Conference
6/26/2018 9:02 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
8/3/2018 7:11 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
9/11/2018 5:53 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Tech·Ed North America /15/2018 3:31 AM
Microsoft Visual Studio IDE Futures
Using JavaScript to Build HTML5 Applications
Sysinternals Tutorials
Tech·Ed North America /19/ :44 PM
What’s New In ASP.NET MVC 2
Jason Zander Unplugged
Title of Presentation 12/2/2018 3:48 PM
12/5/2018 3:24 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Windows 7 Deployment en Masse
Team Foundation Server 2010 for Everyone
Tiberiu Covaci Senior Technical Trainer Many-core
Authoring for Microsoft Silverlight 4 with Microsoft Expression Blend
Tech Ed North America /1/2019 2:58 AM Required Slide
SPC Developer 1/1/2019 Deep Dive on the Capabilities of SharePoint Online's New Public Website Josh Stickler Program Manager WCM Kevin Gjerstad Principal.
Office 365 – Attractive and Easy to Use.
Tech·Ed North America /17/2019 1:47 AM
Microsoft SharePoint Conference 2009 Jon Flanders
Building Awesome Metro style HTML apps in Blend
2/16/2019 8:43 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Office 365 Development.
Building Silverlight Apps with RIA Services
Developing and Managing SharePoint Solutions with Visual Studio 2012
Tech Ed North America /12/2019 6:45 AM Required Slide
Silverlight Debugging
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
A Lap Around Internet Explorer 9 For Developers
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
TechEd /28/2019 7:58 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
TechEd /27/2019 5:37 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Шитманов Дархан Қаражанұлы Тарих пәнінің
Lap Around the Windows Azure Platform
The complete developer's guide to the SkyDrive API
Building BI applications using PowerPivot for Excel
5/24/ :22 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Tech·Ed North America /6/2019 7:10 PM
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
What’s New in Visual Studio 2012 for Web Developers
Presentation transcript:

Jon Flanders Senior Consultant MCW Technologies 7/6/2018 1:16 AM Applying Branding from an Existing Website to Microsoft SharePoint 2010 OSP323 Jon Flanders Senior Consultant MCW Technologies © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Agenda Learn the techniques to create a SharePoint 2010 web site from an existing branded web site

Skills Needed – Team must haves! SharePoint 2010 Understand Master Pages, Page Layouts, and other WCM capabilities Web design skills HTML, CSS, JavaScript, XSLT, and any other client technologies used on your customers’ websites Understanding of ASP.NET a plus Image manipulation skills are also helpful (Expression, Photoshop, Fireworks, etc.) © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Step #1 – Decide what to build Pick a portion of the customer’s site to build Don’t overcommit - keep it as simple as possible At the very least, build out a homepage and a subsection with several pages inside that section

Blue Yonder Airlines

Step #2 – Create the site Provision a new site using one of the “Publishing” site templates Create a hierarchy based on customer’s existing site structure Think about navigation when creating sub-sites For complex structures, don’t use the SharePoint UI, use PowerShell If creating more than four nodes, it’s faster to script the creation of sites and much easier when creating many sub-sites Having such a script is also very useful for development and potentially for deployment

Script site and sub-site creation param( [Array] $sites, [string] $uri ) foreach($s in $sites){ New-SPWeb –URL ($uri + $s) –Template BLANKINTERNET#1 -Name $s } createsubsites.ps1 “http://localhost:8080” “Booking”,”About”,”Contact”

Create Site Hierarchy 7/6/2018 1:16 AM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Step #3 – Create Master Page First step is to find a starter master page Starter master page found on MSDN Extremely well documented Easy to remove stuff you don’t need Installation can be automated Second step is to download your customer’s existing site In Internet Explorer, File->Save the “complete webpage” After saving, examine the page to separate Master Page from Page Layout

Create Master Page 7/6/2018 1:16 AM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Step #4 – Create Content Type(s) and Page Layout(s) Derived from the structure of the content page you’re recreating You likely will need to create more than one content type/page layout For more control with customization you may need to create custom field types and field controls

Create Content Type and Page Layout 7/6/2018 1:16 AM Create Content Type and Page Layout © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Step #5 – Create Navigation Try to mirror existing navigation SharePoint navigation tied to sub-sites or pages Using sub sites is generally preferable Enables top-level URIs to be the main navigation E.g. /About /Contact Use the PortalSiteMapDataSource in SPD with the ASP.NET navigation provider control Style using customer’s existing CSS

Step #6 – Clean up using CSS Styling a SharePoint site is a combination of Creating a custom master page Creating Content Types and Page layouts Adding custom CSS Modifying SharePoint CSS style selectors

Style Sheets * { margin: 0px; } h1 { padding: 5px; } h1.extra Browsers apply CSS using a “cascade” Closest style wins Different kind of selectors Element (e.g. h1, h1.extra) Class (e.g. brand - <div class=“brand”/> Id (e.g. #logo - <div id=“logo”/> Same selector can be “overridden” in a .css file closer to the element You can override the SharePoint selectors in your custom .css files Preferable to complete replacement of SharePoint OOB styles Many OOB features require some or all of the attributes from the OOB selectors * { margin: 0px; } h1 { padding: 5px; } h1.extra { color: red; } .brand { padding: 0px; } #logo { border: 0px; position: absolute; top: 50px; left: 50px; }

SharePoint OOB CSS SharePoint CSS links are placed in every page rendered You cannot completely remove all those CSS links

Adding custom CSS Use CssRegistration control after attribute enables designers to control order css files are added to the page This provides control over the cascade $SPUrl:~sitecollection gets replaced with correct URL at runtime <SharePoint:CssRegistration runat="Server" name="<% $SPUrl:~sitecollection/Style Library/blueyonder/default.css%>" after="corev4.css" /> name="<% $SPUrl:~sitecollection/Style Library/blueyonder/layout.css%>" after="<% $SPUrl:~sitecollection/Style Library/blueyonder/default.css%>"/> name="<% $SPUrl:~sitecollection/Style Library/blueyonder/blueyonder.css%>" after="<% $SPUrl:~sitecollection/Style Library/blueyonder/layout.css%>"/>

CSS tools Expression Web Visual Studio 2010 IE Developer tool Full integration from SPD Visual Studio 2010 CSS files in modules fully editable IE Developer tool Can view and modify attributes on elements “CSS Debugging”

Hiding SharePoint UI CSS is useful for hiding SharePoint UI PublishingWebControls:EditModePanel can be used for similar effect Only hides content when the page isn’t in Edit Mode <style type="text/css"> body #s4-ribbonrow { display: none; } </style>

Using CSS to modify branding

What this is, and what it isn’t This demo so far has been all about branding – the look and feel. This is a good way to show someone who is already familiar with SharePoint how SharePoint can run internet-facing sites. This is not a good demo of Web Content Management.

Summary SharePoint 2010 has a powerful branding system Master Pages can be used to create overall look and feel CSS can be used to integrate with existing SharePoint CSS styles Page Layouts allow fine-grained control over pages

Resources Learning http://northamerica.msteched.com Tech Ed North America 2010 7/6/2018 1:16 AM Resources Connect. Share. Discuss. http://northamerica.msteched.com Learning Sessions On-Demand & Community Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning Resources for IT Professionals Resources for Developers http://microsoft.com/technet http://microsoft.com/msdn © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Complete an evaluation on CommNet and enter to win! Tech Ed North America 2010 7/6/2018 1:16 AM Complete an evaluation on CommNet and enter to win! © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Tech Ed North America 2010 7/6/2018 1:16 AM © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.