numero2 / contao-perview-bundle
Import job advertisements from Perview as news into Contao
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- contao/core-bundle: ^4.13
- contao/news-bundle: ^4.13
Requires (Dev)
- contao/manager-plugin: ^2.0
Conflicts
- contao/core: *
- contao/manager-plugin: <2.0 || >=3.0
This package is auto-updated.
Last update: 2024-11-23 15:06:27 UTC
README
About
Import job advertisements from perview® as news into Contao.
System requirements
- Contao 4.13 (or newer)
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; } }