SlideShare a Scribd company logo
Architecting
Lightning Components
for Community Builder
michael.welburn@gmail.co
m
@MichaelWelburn
Michael Welburn
Salesforce Engineer, Twitch
Michael Welburn
Salesforce Engineer, Twitch
9 x
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
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
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
Community Builder
Demo
Basic Requirements
Implement the forceCommunity:availableForAllPageTypes interface
• That is it!
Enabling a Lightning Component to be used in 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
Basic Component Setup
Demo
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
Community Nuances
Demo
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
Thank Y u

More Related Content

PPTX
Dreamforce 2016: Build Your Donor Community: Integrating NPSP to Your Online ...
PPTX
SFDC Lightning Demo
PDF
Salesforce lightning design system
PDF
DF2UFL 2012: Developer's Den - What's New and What's on the Horizon
PPTX
Lighting up the Bay, Real-World App Cloud
PPT
Building On Demand Apps On Force.com
PDF
DF2UFL 2012: Visual Workflow for Sales and Service Clouds
PPTX
Virtual Hub - Host SharePoint Framework web part as MS Teams messaging extension
Dreamforce 2016: Build Your Donor Community: Integrating NPSP to Your Online ...
SFDC Lightning Demo
Salesforce lightning design system
DF2UFL 2012: Developer's Den - What's New and What's on the Horizon
Lighting up the Bay, Real-World App Cloud
Building On Demand Apps On Force.com
DF2UFL 2012: Visual Workflow for Sales and Service Clouds
Virtual Hub - Host SharePoint Framework web part as MS Teams messaging extension

What's hot (20)

PDF
PPTX
An Introduction to Lightning Web Components
PPTX
Rits Brown Bag - Salesforce Lightning
PPTX
Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK
PDF
Improve customer engagement and productivity with conversational ai
PPTX
Lightning web components
PPTX
Salesforce Apex Hours: What means Winter 18 for Developers
PPTX
24 Sitecore Tips that Every Sitecore Architect Needs to Know
PPTX
lightning presentation
PPTX
Lightning Bolt for Communities 101
PDF
Developing with SharePoint Framework (SPFx) on-premises
PPTX
Salesforce DX for Non-Scratch Org
PPTX
Five Enterprise Best Practices That EVERY Salesforce Org Can Use (DF15 Session)
PPTX
Windows Phone 7 Unleashed Session 2
PDF
Salesforce Spring 22 Webinar
PDF
BrightGen's Winter 13 Salesforce Release Webinar
PPTX
IBM Connect 2016: 1402 - Getting Technically Cozy with IBM Connections Cloud ...
PPTX
Microsoft Viva Connections - Set up and Extend with SPFx
PPTX
SharePoint Framework -The future of SharePoint/ Office 365 developer ecosystem.
PPTX
Integration of linked in using mule esb
An Introduction to Lightning Web Components
Rits Brown Bag - Salesforce Lightning
Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK
Improve customer engagement and productivity with conversational ai
Lightning web components
Salesforce Apex Hours: What means Winter 18 for Developers
24 Sitecore Tips that Every Sitecore Architect Needs to Know
lightning presentation
Lightning Bolt for Communities 101
Developing with SharePoint Framework (SPFx) on-premises
Salesforce DX for Non-Scratch Org
Five Enterprise Best Practices That EVERY Salesforce Org Can Use (DF15 Session)
Windows Phone 7 Unleashed Session 2
Salesforce Spring 22 Webinar
BrightGen's Winter 13 Salesforce Release Webinar
IBM Connect 2016: 1402 - Getting Technically Cozy with IBM Connections Cloud ...
Microsoft Viva Connections - Set up and Extend with SPFx
SharePoint Framework -The future of SharePoint/ Office 365 developer ecosystem.
Integration of linked in using mule esb
Ad

Similar to Architecting Lightning Components for Community Builder (20)

PDF
Salesforce communities
PDF
Building Next-Gen Communities With Lightning Series : Session#01 : Virtual #S...
PPTX
Salesforce.com Lightning
PPT
Mastering Lightning Community Development
PDF
Dreamwares: Lightning Experience
PDF
Salesforce Lightning
PPTX
Lightning web components - Introduction, component Lifecycle, Events, decorat...
PDF
2016 Salesforce Release Highlights
PPTX
Developing Lightning Components for Communities.pptx
PPTX
Optimize Your Self-Service Community
PDF
Customizing Salesforce User Interfaces with Lightning Components
PDF
Creating a Salesforce Community: Code vs Configuration
PPTX
Creating a Salesforce Community: Code vs Configuration
PDF
What is Difference Between LC and LWC?
PPTX
Components, tools and services useful for the lightning developers
PPTX
Connections 18: Content Management Solutions for Lightning Communities
PDF
Build your apps everywhere with Lightning Web Components Open Source, Fabien ...
PPTX
Lightning Components Introduction
PPTX
World Tour Chicago 2017: Intro to Lightning Communities
PDF
Lightning Web Components - A new era, René Winkelmeyer
Salesforce communities
Building Next-Gen Communities With Lightning Series : Session#01 : Virtual #S...
Salesforce.com Lightning
Mastering Lightning Community Development
Dreamwares: Lightning Experience
Salesforce Lightning
Lightning web components - Introduction, component Lifecycle, Events, decorat...
2016 Salesforce Release Highlights
Developing Lightning Components for Communities.pptx
Optimize Your Self-Service Community
Customizing Salesforce User Interfaces with Lightning Components
Creating a Salesforce Community: Code vs Configuration
Creating a Salesforce Community: Code vs Configuration
What is Difference Between LC and LWC?
Components, tools and services useful for the lightning developers
Connections 18: Content Management Solutions for Lightning Communities
Build your apps everywhere with Lightning Web Components Open Source, Fabien ...
Lightning Components Introduction
World Tour Chicago 2017: Intro to Lightning Communities
Lightning Web Components - A new era, René Winkelmeyer
Ad

Recently uploaded (20)

PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
Teaching material agriculture food technology
PDF
Approach and Philosophy of On baking technology
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
NewMind AI Weekly Chronicles - August'25 Week I
Understanding_Digital_Forensics_Presentation.pptx
Big Data Technologies - Introduction.pptx
MIND Revenue Release Quarter 2 2025 Press Release
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Spectral efficient network and resource selection model in 5G networks
Per capita expenditure prediction using model stacking based on satellite ima...
Teaching material agriculture food technology
Approach and Philosophy of On baking technology
Mobile App Security Testing_ A Comprehensive Guide.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
The AUB Centre for AI in Media Proposal.docx
Digital-Transformation-Roadmap-for-Companies.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
NewMind AI Weekly Chronicles - August'25 Week I

Architecting Lightning Components for Community Builder

  • 1. Architecting Lightning Components for Community Builder michael.welburn@gmail.co m @MichaelWelburn Michael Welburn Salesforce Engineer, Twitch
  • 3. 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
  • 4. 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
  • 5. 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
  • 7. Basic Requirements Implement the forceCommunity:availableForAllPageTypes interface • That is it! Enabling a Lightning Component to be used in Community Builder
  • 8. 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
  • 10. 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
  • 12. 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

Editor's Notes

  • #2: Welcome! Session Title – Architecting Lightning Components for Community Builder Talking about the basics of Community Cloud, Community Builder, and building components specifically for Community Builder How many people have seen community builder? What about app builder?
  • #3: Recently started working as a Salesforce Engineer at Twitch Twitch is the world’s leading social video platform and community for gamers, video game culture, and the creative arts. Work on Salesforce and be around video games Have 9 certifications, including the new Community Cloud Consultant certification Just moved to SF, previously spent 3 years working remotely at 7Summits, focusing solely on pixel perfect Community Cloud implementations 7Summits is one of the premier partners & leaders in Community Cloud One of my projects won the Salesforce Partner Innovation Award for Community Cloud last year One of the first companies to release Lightning components on the Exchange for Communities Released a Lightning Bolt template
  • #4: What is a Community? Way to expose select data from your internal Salesforce to external users Customers Partners Employees Full Chatter capabilities within that Community Community Users don’t see internal Chatter Custom branding supported Can have more than 1 community for different (or the same) users Each Community has its own Chatter instance that is separate from other Communities. Think of Communities like you previously considered Force.com App Development You can do fulfill any use case -- but the desire for custom interfaces is much higher since they are exposed outside the company Branding is important Big demand for Communities = lots of opportunity for INTERESTING custom development http://www.salesforce.com/communities/faq/
  • #5: Force.com Sites + Visualforce has traditionally been the best way for pixel perfect Communities Very developer heavy to make the slightest of changes Pages were the deliverable, not components. Every community and developer implemented different frameworks, standards, etc. No SLDS. Salesforce Classic wasn’t inherently responsive, which hampered our ability to leverage those standard Chatter pages.
  • #6: Evolved into Community Builder Community Builder is the equivalent of Lightning Experience for Community Cloud WYSIWYG interface to customize record home pages, list view pages, custom pages and more. Choose a starting template. Prior to Lightning Bolt, this was typically Napili, but now the possibilities are expanding Comes with a large number of Salesforce provided standard components. As of Winter 16, ability to create your own components that can have configurable options for Admins to change as necessary.
  • #7: Demo 0 (Community Builder) Show color picker / image upload Show ability to create object representation of pages Show ability to create custom page Show Drag / Drop interface with Standard component library ** Quick walkthrough - Compare to App Builder
  • #8: Existing Lightning Components that you want to expose in Community Builder only require one small update. Only need to add this if you want that component to show up in Community Builder. Don’t need to update helper components. https://releasenotes.docs.salesforce.com/en-us/winter16/release-notes/rn_lightning_community_builder.htm
  • #9: Inherit site-wide standards for your UI All components have a consistent look and feel Handful of standard design tokens available Font Color Font Type Border Color Link Color Etc… https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/tokens_standard_communities.htm
  • #10: Demo 1 (Enable Visibility) Open Lightning Experience App Builder to show Component in use Open Community Builder to show Component not available Open Developer Console Open existing Lightning Component that shows your User Information Update component to implements=“forceCommunity:availableForAllPageTypes”. Save Refresh Community Builder to show Component available. Drag component onto page and Preview Demo 2 (Design Tokens) Change the font-family from Helvetica to something else in Community Builder. Show that the component is now inconsistent font Open Developer Console to show Component “Style” Change font-family to token Note that defaultTokens token needs to be created first Show Community Builder, fonts are consistent. Change font in Community Builder to something else Show fonts remain consistent
  • #11: Communities are technically very similar to internal Salesforce. Big difference is data scoping and privacy. Need to be sure that your components do not expose data the Community is configured not to show. Respect Community Settings. Admins can toggle settings like the following that your components need to respect: Display Real Name vs Nickname Customer support community may not want real names to be used. Don’t want to write a component that ignores this. Need to be mindful to check Field Level Security in your Components before presenting data to the screen Visualforce inputField & outputField tags did this work for you Ensure that any queries you run are scoped to the correct Community. Users with access to multiple Communities (or internal Salesforce) may see data they have access to, but do not belong in this Community, such as Knowledge Articles or Chatter Groups.
  • #12: Demo 1 (Nickname vs Full Name) Open Community Administration to show Nickname is set to show for names Open Community Builder to show a Component with the following issues: Displaying a User’s real name Open Developer Console to Component Open Apex Class controller and paste in code to check whether to display Nickname or Full Name Update response data to set the appropriate value. Save. Refresh Community Builder to show the correct value is being shown Open Community Administration to change Full Name to show Refresh Community Builder to show the correct value is being shown Demo 2 (Query – Chatter Groups) Open Community to show the Featured Groups Open Groups tab in Community to show that there is only 1 group – the rest were internal Open Developer Console to Apex Class controller Show that the query was ambiguous in the NetworkId filter Update NetworkId part of query Refresh Community home page to show that featured groups are now filtered
  • #13: Links posted at bit.ly/MW-DF16