Difference between revisions of "TalentPiper"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
m (18 revisions imported)
 
(11 intermediate revisions by one other user not shown)
Line 1: Line 1:


== Integrating with CMS ==
== General setup ==
Follow the steps in [[Basic setup]]
 
== Displaying vacancy list in CMS ==
The following describes how to inject the list of vacancies created in TalentPiper directly into a web page.
The following describes how to inject the list of vacancies created in TalentPiper directly into a web page.


Line 17: Line 20:
     echo file_get_contents("https://talentpiper.com/demo/mainpublic?command=dk.p2e.blanket.codeunit.common.PagePublicRecordsListAndShow&AjaxMode=1");
     echo file_get_contents("https://talentpiper.com/demo/mainpublic?command=dk.p2e.blanket.codeunit.common.PagePublicRecordsListAndShow&AjaxMode=1");


This approach is sightly faster than JQuery (below) and is idexable by search engines.


=== Integrating with any CMS using JQuery ===
=== Integrating with any CMS using JQuery ===
On a site with PHP support
In the CMS system insert the following code the place where you want to display the list.


   <?php
   &lt;div id='tsContent'>Indhold hentes</div>
  header("Access-Control-Allow-Origin: *");
  echo file_get_contents("https://talentpiper.com/demo/mainpublic?command=dk.p2e.blanket.codeunit.common.PagePublicRecordsListAndShow");
 
In the CMS insert the following code. We assume the PHP proxy was deployed as '''proxy-talentpiper-dk-demo.php'''
 
  <div id='tsContent'>Indhold hentes</div>
   <script>
   <script>
   jQuery.ajax(
   jQuery.ajax(
   {  
   {  
     url: 'https://www.tempusserva.dk/toolbox/proxy-talentpiper-dk-demo.php',  
     url: 'https://talentpiper.com/demo/mainpublic?command=dk.p2e.blanket.codeunit.common.PagePublicRecordsListAndShow',  
     success: function(data) { jQuery('#tsContent').html(data); }  
     success: function(data) { jQuery('#tsContent').html(data); }  
   });
   });
   </script>
   </script>
== Add links to add user to candiate database ==
Anywhere in a webpage you can add a link to the candidate interface
  https://talentpiper.com/demo/webinterface?nykandidat
Example of HTML for a popup window
  &lt;a target='_blank' href=' https://talentpiper.com/demo/webinterface?nykandidat'>add me to candidate database</a>
You might consider locking the user for a generic placeholder job
  &lt;a target='_blank' href=' https://talentpiper.com/demo/webinterface?nykandidat&DATA_STILLING_NEW=15788'>add me to candidate database</a>

Latest revision as of 11:55, 10 December 2021

General setup

Follow the steps in Basic setup

Displaying vacancy list in CMS

The following describes how to inject the list of vacancies created in TalentPiper directly into a web page.

This helps:

  • Reuse styling/layout from standard pages
  • Content is indexed properly with search engines

Integrating with WordPress using PHP

From the control panel of your WordPress site do the following to integrate the vacancy list from TalentPiper:

  1. Install and activate the plugin "Insert PHP Code Snippet"
  2. Add a new PHP code snippet as seen below
  3. Create a new page and add the snippet

Code example:

   echo file_get_contents("https://talentpiper.com/demo/mainpublic?command=dk.p2e.blanket.codeunit.common.PagePublicRecordsListAndShow&AjaxMode=1");

This approach is sightly faster than JQuery (below) and is idexable by search engines.

Integrating with any CMS using JQuery

In the CMS system insert the following code the place where you want to display the list.

<div id='tsContent'>Indhold hentes

 <script>
 jQuery.ajax(
 { 
    url: 'https://talentpiper.com/demo/mainpublic?command=dk.p2e.blanket.codeunit.common.PagePublicRecordsListAndShow', 
    success: function(data) { jQuery('#tsContent').html(data); } 
 });
 </script>


Add links to add user to candiate database

Anywhere in a webpage you can add a link to the candidate interface

  https://talentpiper.com/demo/webinterface?nykandidat

Example of HTML for a popup window

  <a target='_blank' href=' https://talentpiper.com/demo/webinterface?nykandidat'>add me to candidate database</a>

You might consider locking the user for a generic placeholder job

  <a target='_blank' href=' https://talentpiper.com/demo/webinterface?nykandidat&DATA_STILLING_NEW=15788'>add me to candidate database</a>