contact.creating.html.twig

Same filename in other branches
  1. 9 core/modules/help_topics/help_topics/contact.creating.html.twig
  2. 11.x core/modules/contact/help_topics/contact.creating.html.twig
---
label: 'Creating a new contact form'
related:
  - contact.overview
  - contact.adding_fields
  - contact.setting_default
---
{% set contact_link_text %}{% trans %}Contact forms{% endtrans %}{% endset %}
{% set contact_link = render_var(help_route_link(contact_link_text, 'entity.contact_form.collection')) %}
{% set adding_fields_topic = render_var(help_topic_link('contact.adding_fields')) %}
<h2>{% trans %}Goal{% endtrans %}</h2>
<p>{% trans %}Create a new site-wide contact form.{% endtrans %}</p>
<h2>{% trans %}Steps{% endtrans %}</h2>
<ol>
  <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> &gt; <em>{{ contact_link }}</em>.{% endtrans %}</li>
  <li>{% trans %}Click <em>Add contact form</em>.{% endtrans %}</li>
  <li>{% trans %}Fill in the <em>Label</em> (title) for the form, <em>Recipients</em>, and optionally the other settings.{% endtrans %}</li>
  <li>{% trans %}Click <em>Save</em>. You should see your new contact form in the table, along with a link to view it.{% 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/contact/help_topics/contact.creating.html.twig

View source
  1. ---
  2. label: 'Creating a new contact form'
  3. related:
  4. - contact.overview
  5. - contact.adding_fields
  6. - contact.setting_default
  7. ---
  8. {% set contact_link_text %}{% trans %}Contact forms{% endtrans %}{% endset %}
  9. {% set contact_link = render_var(help_route_link(contact_link_text, 'entity.contact_form.collection')) %}
  10. {% set adding_fields_topic = render_var(help_topic_link('contact.adding_fields')) %}
  11. <h2>{% trans %}Goal{% endtrans %}</h2>
  12. <p>{% trans %}Create a new site-wide contact form.{% endtrans %}</p>
  13. <h2>{% trans %}Steps{% endtrans %}</h2>
  14. <ol>
  15. <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> &gt; <em>{{ contact_link }}</em>.{% endtrans %}</li>
  16. <li>{% trans %}Click <em>Add contact form</em>.{% endtrans %}</li>
  17. <li>{% trans %}Fill in the <em>Label</em> (title) for the form, <em>Recipients</em>, and optionally the other settings.{% endtrans %}</li>
  18. <li>{% trans %}Click <em>Save</em>. You should see your new contact form in the table, along with a link to view it.{% endtrans %}</li>
  19. <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>
  20. </ol>

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