Difference between revisions of "TalentPiper"
Jump to navigation
Jump to search
old>Jno |
old>Admin |
||
Line 7: | Line 7: | ||
* Content is indexed properly with search engines | * Content is indexed properly with search engines | ||
=== Integrating with WordPress === | === Integrating with WordPress using PHP === | ||
From the control panel of your WordPress site do the following to integrate the vacancy list from TalentPiper: | From the control panel of your WordPress site do the following to integrate the vacancy list from TalentPiper: | ||
# Install and activate the plugin "Insert PHP Code Snippet" | # Install and activate the plugin "Insert PHP Code Snippet" | ||
Line 16: | Line 16: | ||
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"); | ||
=== Integrating with any CMS using JQuery === | |||
On a site with PHP support | |||
<?php | |||
header("Access-Control-Allow-Origin: *"); | |||
echo file_get_contents("https://talentpiper.com/dk-hr/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> | |||
jQuery.ajax( | |||
{ | |||
url: 'https://www.tempusserva.dk/toolbox/proxy-talentpiper-dk-demo.php', | |||
success: function(data) { jQuery('#tsContent').html(data); } | |||
}); | |||
</script> |
Revision as of 13:53, 16 December 2019
Integrating with 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:
- Install and activate the plugin "Insert PHP Code Snippet"
- Add a new PHP code snippet as seen below
- 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");
Integrating with any CMS using JQuery
On a site with PHP support
<?php header("Access-Control-Allow-Origin: *"); echo file_get_contents("https://talentpiper.com/dk-hr/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
Indhold hentes
<script> jQuery.ajax( { url: 'https://www.tempusserva.dk/toolbox/proxy-talentpiper-dk-demo.php', success: function(data) { jQuery('#tsContent').html(data); } }); </script>