Creating the Job Detail Page

Visitors to your Force Platform site can search for job postings and see them in a list, but you also want them to be able to drill-down to see the details for individual positions. To accomplish this, you need to provide links to positions on the PublicJobs page, as well as create a Job Details page. In this example, by leveraging the functionality built in to the standard controller—for basic operations, such as editing, deleting, cloning, etc.—you only have to code the Visualforce page.

First, create the PublicJobDetails page in Visualforce. Your Visualforce page should look like this:

<apex:page standardController="Position__c" title="Job Details" showHeader="false" standardStylesheets="true"> <!-- The site template ...

Get The Developer’s Guide to the Force.com Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.