Skip to content

Import job advertisements from Perview as news into Contao.

License

Notifications You must be signed in to change notification settings

numero2/contao-perview-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Contao Perview Bundle

License: LGPL v3

About

Import job advertisements from perview® as news into Contao.

System requirements

Installation

  • Install via Contao Manager or Composer (composer require numero2/contao-perview-bundle)
  • Run a database update via the Contao-Installtool or using the contao:migrate command.

Hooks

By default the bundle only imports certain information from the perview® job advertisements. If you need more meta data you can import them on your own using the parsePerviewPosition hook:

// src/EventListener/ParsePerviewPositionListener.php
namespace App\EventListener;

use Contao\CoreBundle\ServiceAnnotation\Hook;
use Contao\NewsModel;

/**
 * @Hook("parsePerviewPosition")
 */
class ParsePerviewPositionListener
{
    public function __invoke(NewsModel $news, object $position, bool $isUpdate): void
    {
        $news->something = $position->something;
    }
}

About

Import job advertisements from Perview as news into Contao.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages