contact.configuring_personal.html.twig

Same filename in other branches
  1. 10 core/modules/contact/help_topics/contact.configuring_personal.html.twig
  2. 11.x core/modules/contact/help_topics/contact.configuring_personal.html.twig
---
label: 'Configuring personal contact forms'
related:
  - contact.overview
  - contact.adding_fields
---
{% set config_link_text %}{% trans %}Account settings{% endtrans %}{% endset %}
{% set config_link = render_var(help_route_link(config_link_text, 'entity.user.admin_form')) %}
{% set permission_link_text %}{% trans %}Permissions{% endtrans %}{% endset %}
{% set permission_link = render_var(help_route_link(permission_link_text, 'user.admin_permissions')) %}
{% set adding_fields_topic = render_var(help_topic_link('contact.adding_fields')) %}
<h2>{% trans %}Goal{% endtrans %}</h2>
<p>{% trans %}Configure personal contact forms for registered users on the website.{% endtrans %}</p>
<h2>{% trans %}Steps{% endtrans %}</h2>
<ol>
  <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> &gt; <em>People</em> &gt; <em>{{ config_link }}</em>.{% endtrans %}</li>
  <li>{% trans %}In the <em>Contact settings</em> section, check/uncheck the box to enable/disable the contact form for new user accounts.{% endtrans %}</li>
  <li>{% trans %}Click <em>Save configuration</em>.{% endtrans %}</li>
  <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>People</em> &gt; <em>{{ permission_link }}</em>.{% endtrans %}</li>
  <li>{% trans %}Verify that permissions are correct for your site's roles, including the generic <em>Anonymous user</em> and <em>Authenticated user</em>. In order to use personal contact forms, users need both <em>View user information</em> (in the <em>User</em> section, which enables them to view user profiles) and <em>Use users' personal contact forms</em> (in the <em>Contact</em> section, which enables them to use contact forms if they can view user profiles).{% endtrans %}</li>
  <li>{% trans %}Click <em>Save permissions</em>.{% endtrans %}</li>
  <li>{% trans %}The contact form will always have <em>Subject</em> and <em>Message</em> fields. If you want to add more fields, follow the steps in {{ adding_fields_topic }}.{% endtrans %}</li>
</ol>

File

core/modules/help_topics/help_topics/contact.configuring_personal.html.twig

View source
  1. ---
  2. label: 'Configuring personal contact forms'
  3. related:
  4. - contact.overview
  5. - contact.adding_fields
  6. ---
  7. {% set config_link_text %}{% trans %}Account settings{% endtrans %}{% endset %}
  8. {% set config_link = render_var(help_route_link(config_link_text, 'entity.user.admin_form')) %}
  9. {% set permission_link_text %}{% trans %}Permissions{% endtrans %}{% endset %}
  10. {% set permission_link = render_var(help_route_link(permission_link_text, 'user.admin_permissions')) %}
  11. {% set adding_fields_topic = render_var(help_topic_link('contact.adding_fields')) %}
  12. <h2>{% trans %}Goal{% endtrans %}</h2>
  13. <p>{% trans %}Configure personal contact forms for registered users on the website.{% endtrans %}</p>
  14. <h2>{% trans %}Steps{% endtrans %}</h2>
  15. <ol>
  16. <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> &gt; <em>People</em> &gt; <em>{{ config_link }}</em>.{% endtrans %}</li>
  17. <li>{% trans %}In the <em>Contact settings</em> section, check/uncheck the box to enable/disable the contact form for new user accounts.{% endtrans %}</li>
  18. <li>{% trans %}Click <em>Save configuration</em>.{% endtrans %}</li>
  19. <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>People</em> &gt; <em>{{ permission_link }}</em>.{% endtrans %}</li>
  20. <li>{% trans %}Verify that permissions are correct for your site's roles, including the generic <em>Anonymous user</em> and <em>Authenticated user</em>. In order to use personal contact forms, users need both <em>View user information</em> (in the <em>User</em> section, which enables them to view user profiles) and <em>Use users' personal contact forms</em> (in the <em>Contact</em> section, which enables them to use contact forms if they can view user profiles).{% endtrans %}</li>
  21. <li>{% trans %}Click <em>Save permissions</em>.{% endtrans %}</li>
  22. <li>{% trans %}The contact form will always have <em>Subject</em> and <em>Message</em> fields. If you want to add more fields, follow the steps in {{ adding_fields_topic }}.{% endtrans %}</li>
  23. </ol>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.