Could anyone explain to me how the 'Contact Block' Module can be used in Drupal 8? Unfortunately there is not much help on the modules page. I have installed the module, activated it, but still can't find how it should be possible to define a contact form as a block, to put it in a sidebar (like it was possible with 'webform'). Thank you for any help, Thomas

Comments

vm’s picture

Doesn't sound like you worked through the README.txt file included in the module.

CONFIGURATION
-------------
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 add.
- Save the block.

The personal contact form is build to be used on a pages that 'know' about the
user. The user 'To' address is found 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.

Thomas Fischer’s picture

Thank you. I didn't consider that there is inside the modules folder a README file.