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:
- 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");
This approach is sightly faster than JQuery (below) and is indexable 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>