You are here

contact.setting_default.html.twig in Drupal 10

---
label: 'Setting a default contact form'
related:
  - contact.overview
---
{% set contact_url = render_var(url('entity.contact_form.collection')) %}
<h2>{% trans %}Goal{% endtrans %}</h2>
<p>{% trans %}Set a site-wide contact form to be the default contact form (the form that is shown on the <em>/contact</em> URL).{% 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>Edit</em> for the site-wide form you want to be the default.{% endtrans %}</li>
  <li>{% trans %}Check <em>Make this the default form</em> and click <em>Save</em>.{% endtrans %}</li>
</ol>

File

core/modules/help_topics/help_topics/contact.setting_default.html.twig
View source
  1. ---
  2. label: 'Setting a default contact form'
  3. related:
  4. - contact.overview
  5. ---
  6. {% set contact_url = render_var(url('entity.contact_form.collection')) %}
  7. <h2>{% trans %}Goal{% endtrans %}</h2>
  8. <p>{% trans %}Set a site-wide contact form to be the default contact form (the form that is shown on the <em>/contact</em> URL).{% endtrans %}</p>
  9. <h2>{% trans %}Steps{% endtrans %}</h2>
  10. <ol>
  11. <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>
  12. <li>{% trans %}Click <em>Edit</em> for the site-wide form you want to be the default.{% endtrans %}</li>
  13. <li>{% trans %}Check <em>Make this the default form</em> and click <em>Save</em>.{% endtrans %}</li>
  14. </ol>