13
Architecting Lightning Components for Community Builder michael.welburn@gmai l.com @MichaelWelburn Michael Welburn Salesforce Engineer, Twitch

Architecting Lightning Components for Community Builder

Embed Size (px)

Citation preview

Page 1: Architecting Lightning Components for Community Builder

Architecting Lightning

Components for Community

Builder

[email protected]

@MichaelWelburn

Michael Welburn Salesforce Engineer, Twitch

Page 2: Architecting Lightning Components for Community Builder

Michael WelburnSalesforce Engineer, Twitch

9 x

Page 3: Architecting Lightning Components for Community Builder

What is Community Cloud?

Collaborate with people outside your company using your Salesforce data• Customers• Partners• Employees

Each Community is a “mini-Salesforce” instance tied to your org• Support for multiple Communities against 1 Salesforce instance• Record data can be shared between environments• Chatter data segmented between each Community

Page 4: Architecting Lightning Components for Community Builder

Community Cloud Customization in the Past

Previous Options• Salesforce Classic Tabs• Visualforce & Force.com Sites• Site.com

Moving away from Visualforce & Force.com Sites• Developer required for all changes• No standard implementation across Communities

• Page-centric development is not reusable• Standard Salesforce interfaces not mobile responsive• Salesforce is prioritizing Community Templates for new functionality

Page 5: Architecting Lightning Components for Community Builder

Community Builder

Evolution of Community Cloud into Community Builder• Community Templates / WYSIWYG• Color Picker• Image Uploads• Page Creation• Object & Custom Pages• Standard Components

• Support for custom Lightning Components• Salesforce Lightning Design System (SLDS)• Design Tokens• Component Events

• Mobile Responsive

Creating Maintainable Custom Branded Communities

Page 6: Architecting Lightning Components for Community Builder

Community BuilderDemo

Page 7: Architecting Lightning Components for Community Builder

Basic Requirements

Implement the forceCommunity:availableForAllPageTypes interface• That is it!

Enabling a Lightning Component to be used in Community Builder

Page 8: Architecting Lightning Components for Community Builder

Basic Requirements

Create a defaultTokens.token bundle extending force:base

Within the Style portion of custom Lightning Component, leverage token(fontFamily) syntax

Leveraging Design Tokens for Configurable Branding

Page 9: Architecting Lightning Components for Community Builder

Basic Component SetupDemo

Page 10: Architecting Lightning Components for Community Builder

Respecting Community Security & Configuration

Be aware of configurable Community Preferences• Community Nickname vs Full Name

Ensure your Data is scoped correctly• Data may be accessible in a Community where it is not applicable• Zones• Chatter Groups• Data Categories

Page 11: Architecting Lightning Components for Community Builder

Community NuancesDemo

Page 12: Architecting Lightning Components for Community Builder

Next Steps & Resources

What is Community Cloud?• http://bit.ly/CC-FAQ

Community Builder Overview• http://bit.ly/CBOverview

Lightning Components Developer Guide

• http://bit.ly/LC-DG

Trailhead for Communities• http://bit.ly/trailheadcc

Source Code• http://bit.ly/MW-DF16Code

Set Up Your First Community• http://bit.ly/SetupCommunity

Using Templates to Build Communities

• http://bit.ly/UsingTemplates

Configure Components for Communities

• http://bit.ly/ConfigComponent

Network Object API Definition• http://bit.ly/NetworkAPI

Standard Design Tokens for Communities

• http://bit.ly/DesignTokens

All links available at http://bit.ly/MW-DF16

Page 13: Architecting Lightning Components for Community Builder

Thank Y u