MTShop/code/web/modules/contrib/contact_block
Gdilove c391965547 update config 2023-11-17 01:10:57 +08:00
..
config/schema update config 2023-11-17 01:10:57 +08:00
src/Plugin/Block update config 2023-11-17 01:10:57 +08:00
tests/src/Kernel update config 2023-11-17 01:10:57 +08:00
LICENSE.txt update config 2023-11-17 01:10:57 +08:00
README.md update config 2023-11-17 01:10:57 +08:00
composer.json update config 2023-11-17 01:10:57 +08:00
contact_block.info.yml update config 2023-11-17 01:10:57 +08:00
contact_block.links.contextual.yml update config 2023-11-17 01:10:57 +08:00
contact_block.module update config 2023-11-17 01:10:57 +08:00

README.md

INTRODUCTION

The Contact Block module provides you with contact forms in a block. It extends Drupal core's Contact module which provides the forms.

REQUIREMENTS

This module requires the following modules:

  • Contact module (Drupal core)

INSTALLATION

Install as you would normally install a contributed Drupal module. See: https://www.drupal.org/documentation/install/modules-themes/modules-8 for further information.

CONFIGURATION

Create a contact form

  • Home > Administration > Structure > Contact forms
  • Edit (or delete) the default contact forms. Use Manage fields to add, update or remove fields of the form.
  • Optionally, create a contact form.

Add a Contact block to a block region.

  • Home > Administration > Structure > Block layout
  • Click 'Place block' of the region you want to place a contact block in.
  • Search for 'Contact block' in the listed blocks and click 'Place block'.
  • Select the contact form you want to show in this block.
  • Save the block.
  • Optionally, create another contact block.

The personal contact form is built to be used on a pages that 'know' about the user. The user 'To' address is determined by using the user ID in the URL. No personal contact form is displayed if the user ID is not in the URL. For developers: The personal contact form is only loaded if the path contains the 'user' placeholder. For example in /user/{user}.

The contact forms of Contact module remain functional at their URL. Use custom code or an other module to deny access to these pages.

MAINTAINERS

Current maintainers:

This project has been sponsored by:

  • Wizzlern, The Drupal trainers
  • Annertech, Drupal Agency in Ireland & UK
  • MODERNA BG LTD, Digital Agency in Bulgaria & United Europe (EU)