force.com sites sri lanka salesforce user group meetup
DESCRIPTION
Sri Lanka Salesforce Platform Developer User Group : First Meetup : Technical session : Force.com SitesTRANSCRIPT
Force.com Sites PreviewThushara M. [email protected]
Agenda
Technical Overview Functional Overview
Agenda
Technical Overview Functional Overview
Unlim ited Real- Tim e
Custom izat ion
Granular Security
& Sharing
Real-Tim e Workflow
& Approvals
Programm abl e User
Interface
Real-Tim e Mobile
Deploym ent
Real-Tim e Analyt ics
750+Integrated
Applicat ions
T he R e a l-T ime C loud
Mult itenant Kernel
ISO 27001Cert if ied Security
Proven, Real-Tim e Scalability
Programm able Cloud Logic
Real-Tim e Sandbox
Environm ents
Integrated Content Library
Real-Tim e Web Sites
Salesforce to Salesforce
Proven Real-Tim e Integrat ion
Proven Reliability
Real-Tim e Upgrades
3 Global Data Centers
& Disaster Recovery
Real-Tim e Query Opt im izer
Real-Time Transparent System Status
Real-Time Web Sites
Salesforce.com will change forever the way that businesses“ build websites. ”
W ha t K ind o f Site s did the y build?
E-com m erce Market ing Sites Sales Sites
Public Knowledge BaseCase Subm issionCustom er Portals
Public Web Apps Com m unity Sites Custom Sites
H o w I t W o rk s
Your Site In Our Cloud
B uildYour Data In Force.com
D e s ig nThe Perfect UI
W W W
N a m e With Any URL
U s eWith a
CNAME Alias
Agenda
Technical Overview Functional Overview
Site Templates & Components
Assign a default template at the site level
Reference that default template with
expression:{!$Site.Template}
Using Components
Page 1
Component A
Page 2
Component A
Using Templates
Site Template Structure<apex:page showHeader="false" id="SiteTemplate">
<apex:insert name="header”>
</apex:insert>
<apex:insert name=””mainContent"/>
<apex:insert name=”footer”>
</apex:insert>
</apex:page>
<c:SiteHeader />
<c:SiteFooter />
<apex:page …>….
</apex:page>
Template Based Page<apex:page title="Big Cloud Realty" showHeader="false” controller="NewsController">
<apex:composition template="{!$Site.template}"><apex:define name="mainContent">
<apex:outputPanel layout=“block” styleclass="block”><apex:outputPanel layout=“block” styleclass="blockTitle">
<apex:outputPanel class="blue">Latest</apex:outputPanel> News</apex:outputPanel ><apex:outputPanel layout=“block” styleclass="blockBody" >
The following are our most recent news stories.<p/><apex:repeat value="{!newsItems}" var="newsItem">
<b>{!newsItem.Name}</b> - {!newsItem.DateText c}<br/>{!newsItem.Body c}
</apex:repeat></apex:outputPanel >
</apex:outputPanel >
</apex:define></apex:composition>
</apex:page>
Security Model
Each site has it’s own special security
profile Within this profile you can enable:IP address filters to restrict access to siteAccess to specific Visualforce pages and Apex classesRead, Create, Edit, Delete permissions for each objectVisibility and read/write permissions for each field
A boilerplate “unauthorized” error page is provided - you can modify or override this
Customer Portal Support
A Site can be mapped to a Customer
Portal Self-registration is available Site visitors can login and execute Visualforce
pages under their individual user’s context Example registration/login pages are provided
Name:
Pass::
Demo
Caching
To increase end user performance, Sites uses a content delivery network of 40,000 servers distributed across the globe
Content is served from servers closest to the origin of the request
What’s cached:– Static resources with cache control set to public
– Visualforce pages with pages attribute:
Robots.txt and Favicon Support
Robots.txt is used to control how robots crawl your site
Favicon is a website icon that most modern browsers support
Sites supports these types of files:– Create Robots.txt as a Visualforce page
– Create Favicon.ico as a Static Resource
URL Mapping
Sites fully supports custom domain names, eg: http://www.mycompany.com *
Steps to set this up:Register your domain name with any registrar Enter a CNAME record into the DNS that aliases www.mycompany.com to mycompany.force.com Tell Sites what your custom domain name is
SSL is supported via secure.force.com only Tip: Don’t use fully-qualified domain names in your
pages* Supported in production only, not developer edition or sandbox
Live Examples of Sites
http://developer.force.com/sitesgallery
Get Started Today
Sign up for a developer edition organization at http://developer.force.com
Start Building Leverage the community at developerforce
Reference
http://wiki.developerforce.com/page/Tech_Talk:_Force.com_Sites
Thank YouThushara M. Samaradiwakara