Becoming a SharePoint Design Ninja

Post on 08-May-2015

13.478 views 3 download

description

You are about to embark on a journey of becoming a SharePoint Designer Ninja. SharePoint has infiltrated within your company and you want to master the art of css, master pages and page layouts. Within this one hour session, I will teach you the countermeasures required to masterfully brand SharePoint to your will. During this session, we will brand a site from scratch with our bare hands and this will be the initiation into the SharePoint Design. At the end of this session, I’ll teach you legendary abilities of SharePoint Designers including invisibility, walking on water, and control over master page content placeholders. You’ll also be given some secrets from within the walls of the Oniwaban such as practical tips, tricks, and advice so that you too can one day become a SharePoint Design Ninja.http://www.kanwalkhipple.

Transcript of Becoming a SharePoint Design Ninja

416-888-7777 kanwal@khipple.com

Becoming a SharePoint Design Ninja

Kanwal KhippleBrightStarr

416-888-7777 kanwal@khipple.com

About Me• Kanwal Khipple• BrightStarr.com• Passionate about designing

and optimizing SharePoint sites

Twitter @kkhipple

@sharepointbuzz

416-888-7777 kanwal@khipple.com

About You

The SharePoint Person in your company

Designer Experience (100)• HTML• CSS• SharePoint Designer 2010

Developer Experience (100)• Visual Studio• .NET

416-888-7777 kanwal@khipple.com 4

50% Of Top Intranet’s Use SharePointSOURCE: NIELSEN NORMAN GROUP

Secrets to Successful Branding

416-888-7777 kanwal@khipple.com

Agenda

• Why Brand SharePoint?• Tools for Branding• Advanced Tips & Tricks• Secrets to Successful Branding!

416-888-7777 kanwal@khipple.com 6

WHAT IS BRANDING?

416-888-7777 kanwal@khipple.com

SharePoint Branding Overview

Branding is more than adding a pretty header to your site and making it another color besides SharePoint blue

416-888-7777 kanwal@khipple.com

416-888-7777 kanwal@khipple.com

Ice Berg Principle

416-888-7777 kanwal@khipple.com

WHAT’S NEWSharePoint 2010

416-888-7777 kanwal@khipple.com

WCM Features• Status Bar• Themes• Server Ribbon• Tagging & Rating• Client OM

416-888-7777 kanwal@khipple.com

Accessibility Improvements

• Cross-browser support• Built-in support for keyboard navigation• WCAG 2.0 Level AA• Proper use of heading structures (H1, DIV, SPAN, etc.)

416-888-7777 kanwal@khipple.com

Browser Resolutions

416-888-7777 kanwal@khipple.com 14

416-888-7777 kanwal@khipple.com

Browser Market Share

416-888-7777 kanwal@khipple.com

Supported Browsers• Internet Explorer 9– Coming in SharePoint 2010 Service Pack 1

• Internet Explorer 7-8 (32-bit)– IE Dev Toolbar (embedded in IE8+)

• Mozilla Firefox 3.6– FireBug (addon to Firefox)

• Safari 4.04• Google Chrome (Service Pack 1)– Coming in SharePoint 2010 Service Pack 1

http://spbuzz.it/sp2010browsers

416-888-7777 kanwal@khipple.com 17

Here’s What You Get Out of the Box

Make It Not Look Like SharePointConsistent User Experience

416-888-7777 kanwal@khipple.com

NEW INTERFACEDEMO

416-888-7777 kanwal@khipple.com

What’s Involved?

• Information Architecture• Design• Wireframes• Branding• Page Layouts• Master Pages• HTML, CSS, JavaScript

416-888-7777 kanwal@khipple.com

Customization OptionsChange Site Logo, Format, Parts

Change Colors, Backgrounds, Fonts Edit CSS files

Change Page Layout and ContentEdit Master Pages

Edit Page Templates (SharePoint Server only)

Share Your Customization with Others Build Themes and Site Definitions

easyBrowser

SharePoint Designer

SPD + Visual Studio

complex

416-888-7777 kanwal@khipple.com 21

416-888-7777 kanwal@khipple.com 22

416-888-7777 kanwal@khipple.com 23

416-888-7777 kanwal@khipple.com 24

416-888-7777 kanwal@khipple.com

416-888-7777 kanwal@khipple.com

What Do Your Users Want?

416-888-7777 kanwal@khipple.com

http://spbuzz.it/sptopsiteshttp://spbuzz.it/bsdesigns

416-888-7777 kanwal@khipple.com

Agenda

• Why Brand SharePoint?• Tools for Branding• Advanced Tips & Tricks• Secrets to Successful Branding!

416-888-7777 kanwal@khipple.com

Wireframes1. Paper Prototyping2. Collaborative Wireframes

http://spbuzz.it/bmockupsdemo

416-888-7777 kanwal@khipple.com

BALSAMIQ MOCKUPDEMO

416-888-7777 kanwal@khipple.com

Wireframes• Microsoft Visio Wireframe– http://spbuzz.it/sp2007visiotemplate

• Adobe PDF Wireframe– http://spbuzz.it/sp2007pdftemplate

• Photoshop PSD file– http://spbuzz.it/sp2007psdtemplate – http://spbuzz.it/sp2010psdtemplate

• Balsamiq Mockups wireframe– http://spbuzz.it/sp2010bmockupstemplate

416-888-7777 kanwal@khipple.com

MASTER PAGES & PAGE LAYOUTSSharePoint Terminology

416-888-7777 kanwal@khipple.com

What’s new with Master Pages• Placeholders the same between content and application pages• Master Page changes apply to Application (_layouts) pages• Greater use of DIV/CSS layouts -> Fewer Tables• XHTML Strict document type• Much better support for Accessibility• Cross-Browser support

416-888-7777 kanwal@khipple.com

What’s the Same?What has not changed from SharePoint 2007• Complex nested page structures• Lots and lots of styles• Mostly same list of content placeholders• Inconsistent Web Part markup injection• Same default and custom master page tokens

Custom Master Pages:• Copy V4.master and tweak• Start with Minimal or the *Starter* Master Page

416-888-7777 kanwal@khipple.com

Master Pages• Team site master page• User content pages (lists\content pages\etc)• _layouts pages (site settings, etc)

v4.master

• For app experiences, like Search or Office Web Applications• If you do not need site navigation, do not have a ribbon• If your app needs the space

minimal.master

• For error pages or login pages• Not customizable, but pages can be replacedsimple.master

• Show site using legacy interface• No Ribbon, no fluencydefault.master

416-888-7777 kanwal@khipple.com

Master Page

Master Page

Page Layout

416-888-7777 kanwal@khipple.com 38

416-888-7777 kanwal@khipple.com

Content Placeholders<asp:ContentPlaceholder ID="PlaceHolderLeftNavBar"> runat="server" />

416-888-7777 kanwal@khipple.com

Content PlaceholdersContent Placeholder Description

PlaceHolderAdditionalPageHeadUsed to add extra components such as JavaScript, Jscript, and Cascading Style Sheets in the head section of the page.

PlaceHolderBodyAreaClass The class of the body area. This placeholder is no longer used in SharePoint 2010.

PlaceHolderBodyLeftBorderThis placeholder does not appear as part of the interface but must be present for backward compatibility.

PlaceHolderBodyRightMarginThis placeholder does not appear as part of the interface but must be present for backward compatibility.

PlaceHolderCalendarNavigator The date picker used when a calendar is visible on the page.

http://spbuzz.it/sp2010dcph

416-888-7777 kanwal@khipple.com

MASTER PAGES & PAGE LAYOUTSDEMO

416-888-7777 kanwal@khipple.com 43

416-888-7777 kanwal@khipple.com

THEMESSharePoint Terminology

416-888-7777 kanwal@khipple.com

Themes

• 12 colors, 2 Fonts• Control look and feel of your site• Uses Office theme (.thmx files)• Create theme via PowerPoint

416-888-7777 kanwal@khipple.com 46

416-888-7777 kanwal@khipple.com

SHAREPOINT 2010 THEMESDEMO

416-888-7777 kanwal@khipple.com

Agenda

• Why Brand SharePoint?• Tools for Branding• Advanced Tips & Tricks• Secrets to Successful Branding!

416-888-7777 kanwal@khipple.com 54

416-888-7777 kanwal@khipple.com

Advanced Tips & Tricks

Performance Goals• Reduce page weight

Techniques• Output Caching• Blob Caching• CSS Sprites • Consolidate JS and CSS

files • Cache JS, CSS and

image files in browser • Minification of JS and

CSS• Anonymous access for

CSS, JS and image files

Tools• Yslow• Fiddler• Wireshark

416-888-7777 kanwal@khipple.com

Advanced Tips & Tricks

During Visual Upgrade, show content based on UI version

<Sharepoint:UIVersionedContent ID="myContentIDv3" runat="server" UIVersion="3"> <ContentTemplate> <p>This content displays only when UIVersion=3.</p> </ContentTemplate></SharePoint:UIVersionedContent>

<Sharepoint:UIVersionedContent ID=" myContentIDv4" runat="server" UIVersion="4"> <ContentTemplate> <p>This content displays only when UIVersion=4.</p> </ContentTemplate> </SharePoint:UIVersionedContent>

416-888-7777 kanwal@khipple.com

Advanced Tips & Tricks

Remove specific content from Search Results<div class=“footer noindex”/> <!--- footer content ---></div>

Security controlled content

<Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="ManageWeb"> <!--- content here ---></Sharepoint:SPSecurityTrimmedControl>

http://spbuzz.it/msdnspbasepermissions

416-888-7777 kanwal@khipple.com

Handling Legacy Browsers

Warn users when they are using an unsupported browser

<SharePoint:WarnOnUnsupportedBrowsers runat="server"/>http://spbuzz.it/ie6-upgrade-warning

416-888-7777 kanwal@khipple.com

Hide Design Elements from Dialog Boxes

Add s4-notdlg for HTML elements that you don’t want to show in the dialog boxes

<div class=“customFooter”>

<div class=“customFooter s4-notdlg”>

416-888-7777 kanwal@khipple.com

Easily show a Favicon in SharePoint 2010

• Easily show a Favicon in SharePoint 2010

SharePoint 2007 approach<link rel=“shortcut icon” href=“/Style Library/images/favicon.ico”/>

SharePoint 2010 approach<SharePoint:SPShortcutIcon runat=“server” IconUrl=“/Style Library/images/favicon.ico”/>

416-888-7777 kanwal@khipple.com

Custom Ribbon Fonts & Styles

.ms-rteStyle-BlueBackground { -ms-name:Blue Background; background-color: blue; color: white;}

H1.ms-rteElement-H1Blue { -ms-name:Blue Heading 1; color: blue;}

416-888-7777 kanwal@khipple.com 62

Float Ribbon

1. body { overflow:auto; }2. Remove scroll="no" from the <body> tag3. body #s4-workspace {

left:0;overflow:visible;position:relative;}

4. html.ms-dialog body #s4-workspace {overflow-x:auto;overflow-y:scroll;}

416-888-7777 kanwal@khipple.com

Handling the Name.dll ActiveX Control

You can turn off the message on the General Settings page of the Manage Web Applications section of Central Administration. Set Enable Person Name smart tag and Online Status for members to No.

<script type="text/javascript"> function ProcessImn(){} function ProcessImnMarkers () {} </script>

http://spbuzz.it/mskb931509

416-888-7777 kanwal@khipple.com 67

416-888-7777 kanwal@khipple.com

Design Considerations• Identify dependencies

– Package common components separately• Be easy on the portal home page

– Use sandbox to limit resource usage– Avoid referencing the items collection directly– Avoid excessive looping constructs

• Avoid the use of custom site definitions– Utilize site templates– Utilize feature templates

• Consider upgrades– Understand the effects of upgrading the feature– Anticipate the effect of upgrading to v Next

416-888-7777 kanwal@khipple.com 69

Want more?

• Content Query Web Part• Data view web part in SharePoint Designer• XSLT templates• JQuery • SPServices• ClientOM

416-888-7777 kanwal@khipple.com

Tools for Branding?

Take Baby Steps

416-888-7777 kanwal@khipple.com

Ice Berg Principle

416-888-7777 kanwal@khipple.com

Professional SharePoint 2010 Branding and User Interface Design

Provides expert tips, techniques, and insights from the author team of SharePoint 2010 and branding experts

• CSS• master pages• page layouts• SharePoint themes• XSLT• jQuery• Silverlight

http://spbuzz.it/prosp2010ui

416-888-7777 kanwal@khipple.com

Agenda

• Why Brand SharePoint?• Tools for Branding• Advanced Tips & Tricks• Secrets to Successful Branding!

416-888-7777 kanwal@khipple.com

Secrets to Successful Branding

• Organize your content– End users are more likely to use search then navigation

• Follow Web Standards– Optimize and accessibility and standards

• Listen To Your Users

http://spbuzz.it/iYKom7

416-888-7777 kanwal@khipple.com

Announcements

• TSPBUG (the “B” for Business) – http://www.meetup.com/tspbug

• SharePoint Saturday The Conference – http://www.spstc.org

75

416-888-7777 kanwal@khipple.com

http://www.kanwalkhipple.com

@kkhipple @sharepointbuzz

Your Feedback Is Very Important To Me

SharePoint BrandingFrom START to FINISHThank you!