numero2 / contao-contact-persons
Manage contact persons for pages, news and events.
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- contao/core-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-12-01 00:26:27 UTC
README
About
Manage contact persons for pages, news and events.
System requirements
- Contao 4.13 (or newer)
Installation
- Install via Contao Manager or Composer (
composer require numero2/contao-contact-persons
) - Run a database update via the Contao-Installtool or using the contao:migrate command.
Events
If you want to extend the contact persons using your own fields you can use the contao.contact_person_parse
event to modify all the data that will be used in the templates.
// src/EventListener/ContactPersonParseListener.php namespace App\EventListener; use numero2\ContactPersonsBundle\Event\ContactPersonEvents; use numero2\ContactPersonsBundle\Event\ContactPersonParseEvent; use Symfony\Component\EventDispatcher\Attribute\AsEventListener; #[AsEventListener(ContactPersonEvents::CONTACT_PERSON_PARSE)] class ContactPersonListener { public function __invoke( ContactPersonParseEvent $event ): void { // … } }