https://github.com/numero2/contao-contact-persons
Manage contact persons for pages, news and events.
https://github.com/numero2/contao-contact-persons
contacts contao
Last synced: 22 days ago
JSON representation
Manage contact persons for pages, news and events.
- Host: GitHub
- URL: https://github.com/numero2/contao-contact-persons
- Owner: numero2
- License: lgpl-3.0
- Created: 2024-01-29T07:12:29.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-20T08:09:53.000Z (2 months ago)
- Last Synced: 2025-03-31T13:21:56.895Z (about 1 month ago)
- Topics: contacts, contao
- Language: PHP
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Contao Contact Persons Bundele
=======================[](https://packagist.org/packages/numero2/contao-contact-persons) [](http://www.gnu.org/licenses/lgpl-3.0)
About
--Manage contact persons for pages, news and events.
System requirements
--* [Contao 4.13](https://github.com/contao/contao) (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](https://docs.contao.org/dev/reference/commands/) 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.
```php
// 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 {
// …
}
}
```