Job Board Component: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 20: Line 20:
=== Visualforce Pages ===
=== Visualforce Pages ===
You can embed the component component in a Visualforce Page using the following syntax:<syntaxhighlight lang="html">
You can embed the component component in a Visualforce Page using the following syntax:<syntaxhighlight lang="html">
<!-- Load Supporting Components and Global Functions -->
<script src="{!URLFOR($Resource.b3o__GeneralUtils, 'index.js')}" defer="true" type="module"></script>
<!-- This Component -->
<script src="{!URLFOR($Resource.b3o__JobBoardResources, 'index.js')}" defer="true" type="module"></script>
<script src="{!URLFOR($Resource.b3o__JobBoardResources, 'index.js')}" defer="true" type="module"></script>
<script src="{!URLFOR($Resource.b3o__JobPostResources, 'index.js')}" defer="true" type="module"></script>
<body>
 
        <div class="container">
<job-board  
            <job-board  
    job-board-name="Default"
                job-board-name="{!$Setup.b3o__Onboarding_Default_Settings__c.b3o__Default_Job_Board__c}"
    places-api-key="{!$Setup.Onboarding_Default_Settings__c.Google_API_Key__c}"
                places-api-key="{!$Setup.b3o__Onboarding_Default_Settings__c.b3o__Google_API_Key__c}"
></job-board>
            ></job-board>  
 
        </div>
<script>  
        <script>  
    const globals = {
            window.performanceStart = new Date();
        sessionId: '{!GETSESSIONID()}',
            const globals = {
        siteUrl: '{!$Site.baseUrl}',
                sessionId: '{!GETSESSIONID()}',
        useREST: false,
                siteUrl: '{!$Site.baseUrl}',
        router: b3o.GlobalRemotingRouter
                useREST: false,
    };
                router: b3o.GlobalRemotingRouter
    window['globals'] = globals;
            };
</script>
            window['globals'] = globals;
        </script>
    </body>
</syntaxhighlight>
</syntaxhighlight>


=== External Websites ===
=== External Websites ===
You can embed the component component in a wordpress/custom sites using the following syntax:<syntaxhighlight lang="html">
You can embed the component component in a wordpress/custom sites using the following syntax:<syntaxhighlight lang="html">
<!-- Make sure to point the beginning of the URL to your guest site endpoint -->
<!-- Load Supporting Components and Global Functions -->
<script src=".../b3o__GeneralUtils/index.js" defer="true" type="module"></script>
<!-- This Component -->
<script src=".../b3o__JobBoardResources/index.js" defer="true" type="module"></script>
<script src=".../b3o__JobBoardResources/index.js" defer="true" type="module"></script>
<script src=".../b3o__JobPostResources/index.js" defer="true" type="module"></script>


<job-board  
<job-board  
Line 72: Line 64:
=== User and Job Board Settings ===
=== User and Job Board Settings ===


* <code>user-id</code>: User's unique ID.
* <code>user-id</code>: User's unique ID. Not required.
* <code>job-board-name</code>: The name of the job board.
* <code>job-board-name</code>: The name of the job board. Must match the Name field of the Job Board record created in Salesforce
* <code>portal-post-link</code>: The link when embedded in 3B Portals which defines the Job Post page.
* <code>portal-post-link</code>: The link when embedded in 3B Portals which defines the Job Post page.


=== Customization and Overrides ===
=== Customization and Overrides ===


* <code>default-search-radius</code>: Sets the default search radius (default is <code>10</code>).
* <code>places-api-key</code>: Key for Google Places API, if using.
* <code>places-api-key</code>: Key for Google Places API, if using.
* <code>job-object-name</code>: The API name of the job object (default is <code>b3o__Job__c</code>).
* <code>job-object-name</code>: The API name of the job object (default is <code>b3o__Job__c</code>).
* app-documents-link = '/b3o__JobDocuments' - this is the web page that is responsible for delivering the post-application document packs
* theme-type: name of theme to apply by default
* hide-theme-switch: hides the theme switched from the user


=== Search Parameters ===
=== Search Parameters ===
Line 88: Line 82:
=== Field Paths for ATS Integration ===
=== Field Paths for ATS Integration ===
These attributes define the field paths for specific pieces of data within your ATS (Applicant Tracking System). Defaults are provided, but can be overridden for customization:
These attributes define the field paths for specific pieces of data within your ATS (Applicant Tracking System). Defaults are provided, but can be overridden for customization:
* default-search-radius - defaults to 10
* places-api-key - not set by default
* places-api-key - not set by default
* job-object-name = 'b3o__Job__c' - the job object name
* job-object-name = 'b3o__Job__c' - the job object name
Line 112: Line 105:
* job-app-btn-label-path = 'b3o__Apply_Button_Text__c'
* job-app-btn-label-path = 'b3o__Apply_Button_Text__c'
* job-doc-pack-path = 'b3o__Document_Pack__c'
* job-doc-pack-path = 'b3o__Document_Pack__c'
*


Note: for attributes that are not documented, please see the 3B Job object's fields.
Note: for attributes that are not documented, please see the 3B Job object's fields.