3.dev meetup2 visualforce_sites_a_pruzan

12
Force.com sites, Visual force Andrey Pruzan Solit 2012

Upload: nata-isaevich

Post on 07-Nov-2014

767 views

Category:

Business


0 download

DESCRIPTION

Visualforce sites by Nadrey Pruzan, VRP Cloud

TRANSCRIPT

Page 1: 3.dev meetup2 visualforce_sites_a_pruzan

Force.com sites, Visual force

Andrey PruzanSolit 2012

Page 2: 3.dev meetup2 visualforce_sites_a_pruzan

What is a Visualforce Page ?

Visualforce pageVisualforce page consists of Visualforce tags, HTML, JavaScript, or any other

Web-enabled code embedded within a single <apex:page> tag. The markup defines the user interface components that should be included on the page, and the way they should appear.

Page 3: 3.dev meetup2 visualforce_sites_a_pruzan

Visualforce Controllers

Visualforce ControllersA Visualforce controller is a set of instructions that specify what happens

when a user interacts with the components specified in associated Visualforce markup, such as when a user clicks a button or link. Controllers also provide access to the data that should be displayed in a page, and can modify component behavior.A developer can either use a standard controller provided by the Force.com platform, or add custom controller logic with a class written in Apex.

Page 4: 3.dev meetup2 visualforce_sites_a_pruzan

What are Custom Components?

Similar to the way you can encapsulate a piece of code in a method and then reuse that method several times in a program, you can encapsulate a common design pattern in a custom component and then reuse that component several times in one ormore Visualforce pages.

All markup for a custom component is defined within an <apex:component> tag. This tag must be the top-level tag in a custom component definition.

Page 5: 3.dev meetup2 visualforce_sites_a_pruzan

• The Force.com Sites technology utilizes Visualforce, the platform framework for building and deploying custom user interfaces

• The URL for each site can use your unique Force.com domain or your own branded domain

• Force.com Sites can easily generate Atom syndication feeds based on SOQL queries

• Public access settings control which database objects and fields are accessible to visitors

• You can easily use the built in content distribution network integration to cache pages

Ключевые моменты Force.com Sites:

Page 6: 3.dev meetup2 visualforce_sites_a_pruzan

• Corporate and Intranet web sites: You can run your entire public corporate web site on Force.com Sites, or create intranet sites by IP restricting the sites.

• Microsites – Do you want only portions of your website to be accessible to external audiences? No problem! Using Force.com Sites, we create dynamic pages that can be used to obtain key information from end-users.

• Web Applications – Have a need for an application accessible through a browser? Force.com Sites is the ideal solution for everything from ecommerce vending to automating complex business flows.

• Custom Business Applications – Utilizing the Force.com cloud platform, you can have tailored business applications built without the need for costly investment in infrastructure. Our experienced and certified team delivers the specific know-how to develop the applications and processes using this secure, reliable, and fast platform to meet your business needs.

Для чего вы можете использовать Force.com Sites?

Page 7: 3.dev meetup2 visualforce_sites_a_pruzan

You may want to authenticate visitors to the site though. For example, if you want to permit someone to submit a resume against one of the listed Job Openings, you may want to authenticate them. This essentially becomes a "portal.”

In general, there are 3 general categories of Salesforce.com Portals:• Customer Portals• Authenticated Sites• Salesforce.com Sites

In each of these you are giving access to your salesforce.com data to people who are not users of your salesforce system.

Authenticated Sites and Custom Portals

Page 8: 3.dev meetup2 visualforce_sites_a_pruzan

Creating a Force.com site

To create a basic Force.com Site, you need to follow the following four steps:1) Register a domain name2) Create a Force.com Site using the domain name3) Assign Visualforce pages to the Site4) Set up the security access permissions

Page 9: 3.dev meetup2 visualforce_sites_a_pruzan

URL patch and sites

Once you register your Force.com domain name you can create up to 25 sites under this domain name (Enterprise Edition and Unlimited Edition). Developer Edition environments can create 1 site. Each of these sites will have a unique path in the site URL to differentiate one site from another. The location is optional, as you saw in the tutorial. The following figure shows the general URL path structure.

A site consists of 3 components:The Force.com domain name that uniquely identifies your specific organization (case insensitive)The path identifies the specific site (case sensitive)A Visualforce page that is associated with your site (case insensitive)

Page 10: 3.dev meetup2 visualforce_sites_a_pruzan
Page 11: 3.dev meetup2 visualforce_sites_a_pruzan
Page 12: 3.dev meetup2 visualforce_sites_a_pruzan