Import job advertisements from Personio as news into Contao.
- Contao 4.9 (or newer)
- Install via Contao Manager or Composer (
composer require numero2/contao-personio-bundle
) - Run a database update via the Contao-Installtool or using the contao:migrate command.
By default the bundle only imports certain information from the Personio job advertisements. If you need more meta data you can import them on your own using the parsePersonioPosition
hook:
// src/EventListener/ParsePersonioPositionListener.php
namespace App\EventListener;
use Contao\CoreBundle\ServiceAnnotation\Hook;
use Contao\NewsModel;
/**
* @Hook("parsePersonioPosition")
*/
class ParsePersonioPositionListener
{
public function __invoke(NewsModel $news, object $position, bool $isUpdate): void
{
$news->something = $position->something;
}
}