You are here

contact.creating.html.twig in Drupal 10

Same filename and directory in other branches
  1. 9 core/modules/help_topics/help_topics/contact.creating.html.twig
---
label: 'Creating a new contact form'
related:
  - contact.overview
  - contact.adding_fields
  - contact.setting_default
---
{% set contact_url = render_var(url('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; <a href="{{ contact_url }}"><em>Contact forms</em></a>.{% 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/help_topics/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_url = render_var(url('entity.contact_form.collection')) %}
  9. {% set adding_fields_topic = render_var(help_topic_link('contact.adding_fields')) %}
  10. <h2>{% trans %}Goal{% endtrans %}</h2>
  11. <p>{% trans %}Create a new site-wide contact form.{% endtrans %}</p>
  12. <h2>{% trans %}Steps{% endtrans %}</h2>
  13. <ol>
  14. <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> &gt; <a href="{{ contact_url }}"><em>Contact forms</em></a>.{% endtrans %}</li>
  15. <li>{% trans %}Click <em>Add contact form</em>.{% endtrans %}</li>
  16. <li>{% trans %}Fill in the <em>Label</em> (title) for the form, <em>Recipients</em>, and optionally the other settings.{% endtrans %}</li>
  17. <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>
  18. <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>
  19. </ol>