numero2/contao-contact-persons

Manage contact persons for pages, news and events.

Installs: 52

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:contao-bundle

pkg:composer/numero2/contao-contact-persons

1.0.0 2026-02-16 12:04 UTC

This package is auto-updated.

Last update: 2026-02-16 12:05:08 UTC


README

License: LGPL v3

About

This bundle allows you to manage contact persons for individual pages, news items, or events.

Features

  • Manage contact persons for pages, news, or events.
  • A dedicated content element to:
    • display a single contact person, or
    • output a list of selected contact persons
  • Optionally attach a VCF file to each contact person
  • Alternatively, automatically generate a VCF file from the information stored in the backend for download

Screenshot

Editing a contact person

System requirements

Installation

  • Install via Contao Manager or Composer (composer require numero2/contao-contact-persons)
  • Run a database update via the Contao Manager 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 {
        // …
    }
}