instride/contact-form

contact form Bundle for Pimcore

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:pimcore-bundle

pkg:composer/instride/contact-form

v1.0.0 2026-01-09 15:22 UTC

This package is not auto-updated.

Last update: 2026-01-10 13:37:04 UTC


README

This Bundle provides a simple contact form for your website. It allows you to easily add a contact form to any page on your site using a document in your Pimcore application.

Features

  • Simple contact form with fields for firstname, lastname, email and message.
  • Basic JavaScript Form validation to ensure all fields are filled out correctly.
  • Sends form submissions to a configurable email address.
  • Uses Twig templates for easy customization of the form layout and styling.
  • Redirects users to a configurable page after a successful submission. contact-form-modal.png

Requirements

  • Pimcore ^11.0
  • Symfony/Form ^6.0
  • Symfony/Twig-Bundle ^6.0

Installation

You can install the Bundle via Composer:

composer require instride/contact-form

Then, enable the Bundle in your config/bundles.php file:

return [
    // ...
    Instride\Bundle\ContactFormBundle\ContactFormBundle::class => ['all' => true],
];

Before using the contact form, make sure create the FormValue Data-Object class following the template: formvalue-dataobject-class.png

Add the following line to the <head> of your base Twig template to include the necessary assets:

{% include '@ContactForm/_contact_form_assets.html.twig' %}

Finally, Run the following command to install the required assets:

php bin/console assets:install

Usage

To use the contact form, create a new Document with the name contact_form in your Pimcore admin panel. You can then add this document to any link on your site. contact_form-page.png To configure a redirect page after a successful submission, set the contact_form_redirect_site property in the Navigation & Properties tab of the document. required-document-property.png In the "Website Settings" section of your Pimcore admin panel, set the following properties:

  • contact_form_admin_mail
  • contact_form_parent_folder required-website-settings.png These properties will be used by the contact form to send submissions and configure the save location of the submission-objects. form-value-object.png