Search In This Blog

2016-08-17

How to create a public website or application by Salesfore

Recently, I supported a few of  SFDC beginners build an online membership management system.

Then they asked me a question: how to create a public site and application with salesforce? No need to log in with a username and password.

Public website is available in Salesforce Classic Developer/Enterprise/Performance/Unlimited Edition. There are steps below.

Step 1.
Need a Manage User

Step 2.
Log in Salesforce with Manage User, click the setup link in right-top.

Step 3.
Use Quick Find box to search 'sites' and select 'Sites'. Or find it in left bar: Build > Develop > Sites
There will be a introduce to What is a Site? You can read it to get more information about Force.com site.

Step 4.
Choice a unique name for your site, you can check it by 'Check Availability' button. If the name is available, then check the agree checkbox and click 'Register My Force.com Domain' button to register a custom Force.com for your org.
Attention: This name can't be modified after be registered.

Step 5.
New a page for this site and input the fields. You can just input the necessary fields.
  • Site label: Appears in user interface.
  • Site Name: Will be used when referencing the site in the SOAP API
  • Site Description: An optional description.
  • Site Contact: The account to receive site-related communications.
  • Default Web Address: Public will use this URL to access your site.
  • Active: Publish the site right after save or not.
  • Active Site Home Page: The landing page, choice a Visualforce page
  • Inactive Site Home Page: Default is maintenance page, you can customize it.
  • Site Templates: Provide page layout and stylesheet.
  • Site Robots.txt: Help to be searched by Google.
  • Site Favorite Icon:
  • Analytics Tracking Code: Like Google Analytics Code ID
  • URL Rewriter Class: The Apex class used for URL rewriting on this site.
  • Enable Feeds
  • Clickjack Protection Level:
  • Require Secure Connections(HTTPS)
  • Guest Access to the Support API
Step 6.
Save and check the site.
If site is inactive, it will a maintenance page as below.

If license is trial edition, you can't find sites menu and unable to public the site.


No comments:

Post a Comment