+ All Categories
Home > Technology > Session 2 branding and site development in SharePoint

Session 2 branding and site development in SharePoint

Date post: 19-May-2015
Category:
Upload: khoa-quach
View: 631 times
Download: 0 times
Share this document with a friend
Popular Tags:
23
The 7 th SharePoint Saturday Vietnam has been made possible because of a generous sponsorship from the following friends
Transcript
Page 1: Session 2   branding and site development in SharePoint

The 7th SharePoint Saturday Vietnam has been made possible because of a generous sponsorship

from the following friends

Page 2: Session 2   branding and site development in SharePoint

About Me Khoa Quach SharePoint Technologies MCTS, MCP CEO, Cofounder of NIFTIT

Brooklyn, New York based startup We empower users through nifty solutions www.niftit.com

@niftykhoa

@NIFTIT

Page 3: Session 2   branding and site development in SharePoint

Branding SharePointMore Tools

Page 4: Session 2   branding and site development in SharePoint

Most SharePoint Intranet portals looks like this…

Page 5: Session 2   branding and site development in SharePoint

When they can display…

Page 6: Session 2   branding and site development in SharePoint

CSWPThe content search web parts and display templates

Page 7: Session 2   branding and site development in SharePoint

Advantages

• CSWP is a new feature in SP 2013 – Used to display search related information– The CSWP returns content that is as fresh

as the latest crawl of your content

• Granular control over the information display– Easily create query, sorting and filtering– Power Users can select property mappings– Display templates are using HTML,CSS and

JS

Page 8: Session 2   branding and site development in SharePoint

Before we get started

• Only available enterprise version• Not necessary but highly

recommended to have CA access and access to SSA

• Why? – Because CSWP returns content from the

search index.– Because you want to have control over

managed property and content sources

Page 9: Session 2   branding and site development in SharePoint

Where are the display templates

Via the web, all display templates are located under the design manager

Via SPD: All Files >> _catalogs >> masterpage

>> Display Templates >> Content Web Parts

They always come in pair: HTML + JS. Never edit JS (auto-generated)

Page 10: Session 2   branding and site development in SharePoint

Control Display Template

Control the chrome or recurring elements of the CSWP

Page 11: Session 2   branding and site development in SharePoint

Item DisplayTemplate

Allow to control the display of one specific item

<mso:ManagedPropertyMapping /> helps you provide proper mapping from the CSWP (or enforced them)

'Line 1'{Select a Title}:'Title'

Page 12: Session 2   branding and site development in SharePoint

Two examples via demo

Announcement simple display template

Calendar with Date sorting Slider Image with Bootstrap.js

STEPS for successful CSWP:- What are the information to be query- How to display the information

Page 13: Session 2   branding and site development in SharePoint

Alternative to CSWPA step into development

Page 14: Session 2   branding and site development in SharePoint

Content Query Web Part

Introduced in 2010 Still viable solution Same restrictions from 2010 applies

for 2013

Page 15: Session 2   branding and site development in SharePoint

SOAP/REST web services and useful libraries

SOAP: XML based format, protocol agnostic web service

REST: ATOM/JSON format, HTTP only web service

SPServices.js (Marc D Anderson) Restpoint.js (Dom Benoscek)

Page 16: Session 2   branding and site development in SharePoint

SOAP/REST web services and useful libraries

SOAP: XML based format, protocol agnostic web service

REST: ATOM/JSON format, HTTP only web service

SPServices.js (Marc D Anderson) Restpoint.js (Dom Benoscek)

Page 17: Session 2   branding and site development in SharePoint

Example via SPServices.js

A useful SOAP library

Page 18: Session 2   branding and site development in SharePoint

SOAP/REST web services and useful libraries

Page 19: Session 2   branding and site development in SharePoint

Useful functions on SPServices

• SPGetCurrentSite• SPGetCurrentUser

• GetListItems

• GetRolesAndPermissionsForCurrentUsers

Page 20: Session 2   branding and site development in SharePoint

Other useful libraries

That can help you providing a great branding solution

Page 21: Session 2   branding and site development in SharePoint

Bootstrap.js

• framework for faster and easier front end development.

• In the context of SharePoint:– Navigation– Grid system

Page 22: Session 2   branding and site development in SharePoint

Angular.js

• Hot topic in mobile and windows 8 application development

• Provides clean framework for MVC type development with JS

• In the context of SharePoint:– Cleaner HTML– Neatly organize multiple CSOM/JSOM

• Recommend reading posts from Jeremy Thake

Page 23: Session 2   branding and site development in SharePoint

Thank you


Recommended