3. • How many people have built Community sites using Community cloud?
• How many people have used Salesforce Tabs + Visualforce Community template?
• How many people have used Less?
• How many people have used Gulp?
Have you used Community Cloud?
4. • Community Templates
• Configure Visualforce Template to Community
• Load Visualforce Header/Footer to OOTB pages
• Configure color code fields in “Community Configuration” custom object
• Less
• Gulp
• Generate CSS Visualforce component using Gulp
Demo
• Adding header to Customer and Partner communities
• Changing brand colors from internal SFDC tab without modifying code
Agenda
6. Community Builder Based (KOKUA, KOA, NAPILI, and ALOHA)
• Branding Editor to change colors and fonts
• Site.com Studio to adjust templates
• KOKUA, KOA for Knowledge and Cases
• NAPILI for Knowledge, Cases, and Q&A
• ALOHA App Launcher for Identity and Connected App
SALESFORCE TABS + VISUALFORCE
• OOTB tabs
• Use Visualforce Template + Header/ Footer components
Community Templates
14. Configure Header / Footer html pages to the Salesforce Tabs +
Visualforce template
• Create Header / Footer html pages
• Upload them to a Document folder
• Configure them in Community Administration: Branding tab
15. • Create Header / Footer Visualforce pages
• Create jQuery script pages
• Load jQuery script pages in HTML Header / Footer pages
Using jQuery to load Visualforce Header / Footer
for OOTB pages
25. CSS pre-processors. One of the most popular front-end development tools.
Mixins
.v-align {
display: inline-block;
vertical-align: middle;
}
#navbar{
.v-align;
}
Less
30. • One of the most popular JavaScript build tools (Grunt, Brunch…etc)
• Gulpfile.js, defines build tasks. Great thing about “Gulpfile.js” is JavaScript code not configuration file.
• Simple: 5 basic functions
• gulp.task: registers function
• gulp.run: run tasks
• gulp.watch: watch file changes and run tasks
• gulp.src: returns a readable stream
• gulp.dest: return a writable stream
Gulp
31. “compileCSS” task to dynamically generate
Visualforce SC_CSSMain.component and upload to SFDC org
33. Demonstrate changing brand colors from internal SFDC tab without modifying code
Steps
• 2 Communities (Customer and Partner) using one code base
• In “Community Configuration” custom object tab
“Brand Customer Community” record
“Brand Partner Community” record
• Add SC_Header.component
• Style SC_Header.component in header.less
• Configure VF merge fields in variable.less
• Using Less and Gulp generating SC_MainCSS.component
• Change branding colors from internal SFDC tab without modifying code.
Demo: Adding header to customer and partner communities
using less and gulp
34. • Gulp monitors file changes
• Gulp compiled less files
• Because of the less variables, merge fields were generated to a css file
background: radial-gradient({!BrandPrimaryColor}, {!BrandPrimaryDarkColor});
• Gulp constructed SC_MainCSS.component
• Gulp executed MavensMate command to saved SC_MainCSS.component to SFDC org.
• SC_MainCSSCotroller read the brand colors in Community Configuration records based on the community
name.
Here is what happened.
35. “compileCSS” task to dynamically generate
Visualforce SC_CSSMain.component and upload to SFDC org
42. Share Your Feedback, and Win a GoPro!
3
Earn a GoPro prize entry for each completed
survey
Tap the bell to take a survey2Enroll in a session1
Editor's Notes
7Summits Community Expert Focus on Community
We have done many community implementations using community cloud
Especially using Visualforce
Strong UI/UX team and we build beautiful community sites.
Responsive design
I wan to share some techniques
Development process
I want to talk about demo first.
When you use Visualforce mix with OOTB pages
Consistent Header Footer