Skip to content

numero2/contao-contact-persons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contao Contact Persons Bundele

License: LGPL v3

About

Manage contact persons for pages, news and events.

System requirements

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 {
        // …
    }
}

About

Manage contact persons for pages, news and events.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages