Cross Site Collection Navigation using SPFx, Powershell PnP & PnP-JS

Slides:



Advertisements
Similar presentations
MICHAEL MARINO CSC 101 Whats New in Office Office Live Workspace 3 new things about Office Live Workspace are: Anywhere Access Store Microsoft.
Advertisements

Developing Branding Solutions for 2013 Thomas Daly,
Microsoft SharePoint 2013 SharePoint 2013 as a Developer Platform
Creating a SharePoint App with Microsoft Access Services
Open and save files directly from Word, Excel, and PowerPoint No more flash drives or sending yourself documents via Stop manually merging versions.
Basic SharePoint 2013 App Development start-up for New Developers
App development in SharePoint 2013 LIVE Introducing Cloud App Model Cloud-hosted Apps Experiences from the Field.
Microsoft SharePoint 2010 Upgrade Preview FSU SharePoint Users Group Presents: Thursday, December 1 st, 2011.
Create with SharePoint 2010 Jen Dodd Sr. Solutions Consultant
What’s New for IT Professionals in Microsoft® SharePoint® Server 2013 (Day 2) Sayed Ali (MCTS, MCITP, MCT, MCSA, MCSE ) Senior SharePoint.
Module 8 Configuring and Securing SharePoint Services and Service Applications.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Searching Business Data with MOSS 2007 Enterprise Search Presenter: Corey Roth Enterprise Consultant Stonebridge Blog:
What’s New in SharePoint 2010 SharePoint 2010 Development Primer New Developer Tools for SharePoint 2010 SharePoint 2010 Integration with PowerShell.
SharePoint Administrative Communications Planning: Dynamic User Notifications for Upgrades, Migrations, Testing, … PRESENTED BY ROBERT FREEMAN (
1 © Xchanging 2010 no part of this document may be circulated, quoted or reproduced without prior written approval of Xchanging. MOSS Training – UI customization.
Microsoft ® Official Course Developing a Publishing Site for Web Content Microsoft SharePoint 2013 SharePoint Practice.
Presentation Title Subtitle DSpace UI Prototype 7 Spring, Angular.js, and the DSpace REST API.
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
Leveraging Web Content Management in SharePoint 2013 Christina Wheeler.
Software services delivering SharePoint, Mobile, and Business Intelligence solutions Understanding and implementing the remote provision pattern in SharePoint.
Wes Preston DEV 202. Audience: Info Workers, Dev A deeper dive into use-cases where client-side rendering (CSR) and SharePoint’s JS Link property can.
Trimantra Software Solution Offshore Software Development Outsourcing Company Visit :
A Developer’s Introduction to SharePoint 2013 Apps Ryan McIntyre, MCITP, MCPD National
Productivity Architect Meet Chris Bortlik Author, Blogger, Speaker.
TRINAY TECHNOLOGY SOLUTIONS
Tools and Tips for Administering Office 365
Branding Without MasterPages, the Future of UX in SharePoint Online
Understanding SharePoint Framework Extensions
Let's build with SharePoint Web parts, extensions, and much more
What's new in the world of SharePoint development and deployment
About Bill Bill Baer (ˈbɛər)
SharePoint Development in the Enterprise (What's New, What's Coming)
Automate Custom Solutions Deployment on Office 365 and Azure
Use Office UI Fabric React to Build Beauty with SharePoint
Business Connectivity Services in SharePoint 2010 and Office 2010
SPC Developer 6/25/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Using Microsoft Identity Manger with SharePoint 2016 to fill the User Profile Sync Gap Max Fritz Senior Systems Consultant Now Micro.
Microsoft
The Transition to Modern Office Add-in Development
Microsoft SharePoint Server 2016
Upgrading from Full Trust Code to Add-in Model and SharePoint Framework Paolo Pialorsi Senior Consultant - PiaSys.com Track: DEV | Level:
Modern UI Extensions with the SharePoint Framework
SharePoint Framework Extensions
SharePoint Online Development Best Practices
Application Lifecycle Management – Best Practices for SharePoint and Office App development November 2015.
SPFx – A modern development tool for SharePoint
Developing Branding Solutions for 2013
Understanding SharePoint Framework and Modern Development
SharePoint-Hosted Apps and JavaScript
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
SharePoint Administrative Communications Planning: Dynamic User Notifications for Upgrades, Migrations, Testing, … Presented by Robert Freeman (
SharePoint 2019 Changes Point of View.
20409A 7: Installing and Configuring System Center 2012 R2 Virtual Machine Manager Module 7 Installing and Configuring System Center 2012 R2 Virtual.
Introduction to SharePoint Framework (SPFx)
Practical guide to build Modern Intranet sites with SharePoint Communication Sites Asish Padhy.
SharePoint Hub Sites and how should they be implemented
Introduction to SharePoint Framework
All About Office UI Fabric
Site scripts and Site Design
The SharePoint framework
SharePoint 2019 Overview and Use SPFx Extensions
The Modern UX is SharePoint’s Future
Microsoft Connect /28/2019 2:20 AM
Hello, Minnesota! This is the SPC18 recap.
PowerShell + SharePoint Online – An Admins Guide to Administration in the O365 Cloud Marrell Sanders – Sr. SharePoint Administrator SharePoint Saturday.
PnP Partner Pack - Introduction
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

Cross Site Collection Navigation using SPFx, Powershell PnP & PnP-JS SPS Ahmedabad 2018 Presented by: Thomas Daly

About me SharePoint Team Lead @ SoHo Dragon - NYC Senior Developer for Office 365 & SharePoint Enjoys the UI side of things front end dev, branding, design Community Involvement International Speaker! NJ SharePoint User Group Organizer SharePoint Saturday NYC Organizer [10th year] NJ & NYC Global Office 365 Dev Bootcamp Organizer NJ Azure Bootcamp Organizer SharePoint Saturday NJ Organizer [2013-2014] My SharePoint Blog Git Hub [corp directory controls / o365 sticky footer / bootstrap navigation]

SharePoint / Office 365 / Azure / Data Intranets - Migrations - Development Recruiting - Staffing Hiring – Ahmedabad Office

Outline Background Solution Architecture Creating Templates via PnP Powershell Create an SPFx Extension Application Customizer Deployment & Development Other Examples / Enhancements

“Modern“ Sites have flat architecture Security / Permissions Database Sizing Isolated Configurations (ex. Search) Specific Functionality Many organizations opt for multiple site collections for a variety of reasons Each modern site is a site collection Modern Site architecture is wide rather than deep [sub sites] Sub site model still exists Modern “Hub” sites are meant to logically group site collections “Modern“ Sites have flat architecture Background

Background Cross Site Collection Navigation has been an issue since the beginning Microsoft has never offered a solid solution to this problem Company’s & Consultants have been building solutions to fill the gap for almost every version of SharePoint

Hub Sites A SharePoint Hub Site can be associated with multiple teams and communication sites (or site collections). It provides the following common features: Navigational structure Logo Look and feel Scoped search

Solution Architecture In this solution we will have 1 list that drives the navigation Each site collection will get a SPFx Extension / Application Customizer The SPFx Extension / Application Customer will connect to the SP list

Site Collections Site 1 Root Site App Catalog SP LIST Site 2 Global Nav Package Site 3

Date Source Variations Using List Items 01 Using Text / HTML Files 02 Using Managed Meta Data 03

1 2 3 Concerns Users must have access to the navigation source Solutions needs to be able to target the source via a URL 2 Security Trimming Respected 3

SharePoint List Structure Single Line of Text using OOTB Title, the display name of the Node Title the link where the Node navigates to Url Yes/No Specify if you want to navigate in a new tab or current window Open In New Window Number Allows us to sorts the navigation Order Lookup Points to itself, allowing a node to have a parent Parent Node SharePoint List Structure

List Deployment Options Manually Make List 1 Create list schema for deployment via SPFx 2 Create list programmatically via PowerShell PnP 3 Create list schema via PowerShell PnP, use the provisioning engine 4 Manually – not feasible, repeatable, weird list field formats Via spfx – list deployed 1 time with every package install – unnecessary for each site to have this list Could do this, lomit Best way in my opinion for total control over schema and most powerfull

A library of PowerShell commands that allows you to perform complex provisioning and artifact management actions towards SharePoint. 100’s of cmdlets that work against both SharePoint Online and SharePoint On-Premises. (2013, 2016 & Office 365) Can be combined into very powerful scripts for configuration, testing & automated deployment PnP PowerShell

SharePoint Framework (SPFx) Extensions Extend the SharePoint user experience within modern pages and document libraries Used to customize more facets of the SharePoint experience, including notification areas, toolbars, and list data views. SharePoint Framework tools and libraries for client-side development. Application Customizers. Adds scripts to the page, and accesses well-known HTML element placeholders and extends them with custom renderings. Field Customizers. Provides modified views to data for fields within a list. Command Sets. Extends the SharePoint command surfaces to add new actions, and provides client- side code that you can use to implement behaviors. Building your first extension SharePoint Framework (SPFx) Extensions

Application Customizer Provides access to well-known locations on SharePoint pages that you can modify based on your business and functional requirements For example, you can create dynamic header and footer experiences that render across all the pages in SharePoint Online. Starts out as plain old JavaScript shell, but you can add React Building Application Customizer Application Customizer

Adding React Elements Include libraries & types similar to SPFx1.6 Web Part npm install @types/react@15.6.6 @types/react- dom@15.5.6 react@15.6.2 react-dom@15.6.2 –save Creating React Components

Global Navigation Define Interfaces - TypeScript is your friend! Global Navigation Provider Root Global Nav Component Nav Node Components (both parent & child)

PnP JS is a collection of fluent libraries for consuming SharePoint, Graph, and Office 365 REST APIs in a type-safe way https://pnp.github.io/pnpjs/ SP PnP-JS

Benefits of Using SP-PnP-JS Intellisense & TypeChecking Simplify development experience Intuitive using fluent library Easier to read code intent Asynchronous, built on Promises Built-in caching Abstracts devs from low level details Something like SPServices?

Caching Use when data doesn’t change quickly / often Caching Timeout Global Disable [for testing/debugging] Storage Options Session Storage – persists until window closed Local Storage – persists until explicitly deleted

Office UI Fabric Official UX design framework for Office Apps/Add-ins Contains Styles, Icons & Components Focus on developing functionality instead of design New SharePoint experiences are built with Fabric and the SharePoint Framework comes with it baked in to make things simple Office UI Fabric

Office UI Fabric Icons Fabric uses a custom font for its iconography. Includes glyphs that you can scale, color, and style in any way See all the icons - here

Tenant Wide Deployment SharePoint Framework components can be set to be immediately available across the tenant when the solution package is installed to the tenant app catalog This can be configured by using the skipFeatureDeployment attribute in the package-solution.json file When the solution has this attribute enabled, the tenant administrator is provided the option to enable the solution to be available automatically across all site collections and sites in the tenant when the solution package is installed to the tenant app catalog. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/tenant-scoped- deployment

Building an SPFx Application Customizer Building list via PnP Building an SPFx Application Customizer Add Data Calls with PnP JS calls Show Site Menu Variation Demos Debugging ?debugManifestsFile=https://localhost:4321/temp/manifests.js&loadSPFX=true

Enhancements – Different Data Sources Some scenarios in would have multiple “environments” per tenant. /sites/contoso /sites/mySite /sites/anotherSite /sites/contosoDEV /sites/mySiteDEV /sites/anotherSiteDEV /sites/contosoSTG /sites/mySiteSTG /sites/anotherSiteSTG You might want to just target the root site as the data source INSERT PICTURE FOR

Enhancements – Caching Reduce unnecessary calls, client/server impact & faster load times Global Navigation Solutions are excellent candidates for caching Specify Global Caching or Per Call caching parameters If you plan to security trim you need to be cautious

Slides, Demos & Contact https://www.slideshare.net/tommdaly https://github.com/tom- daly/demos/tree/master/sps-ahmedabad Email: thomasd@sohodragon.com Twitter: @_tomdaly_ LinkedIn: profile