Skip to content

Commit b2c413a

Browse files
authored
Merge branch '7.1' into cherry-pick-349-b71
2 parents d0ef3c2 + 6385a13 commit b2c413a

File tree

5 files changed

+62
-3
lines changed

5 files changed

+62
-3
lines changed

docs/channels/emails.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,28 @@ To use custom date fields in tokens, use the following format:
187187
188188
The date outputs in a human-readable format, configured in the settings in your Global Configuration > System Settings under 'Default format for date only' and 'Default time only format'.
189189

190+
Label modifier for select and boolean fields
191+
--------------------------------------------
192+
193+
For select and boolean field types, you can display the human-readable label instead of the stored value by using the ``|label`` modifier:
194+
195+
.. code-block:: php
196+
197+
{contactfield=select_alias|label}
198+
{contactfield=bool_alias|label}
199+
200+
This is particularly useful when these fields contain technical values, but you want to show user-friendly labels in your Emails. For instance:
201+
202+
* A country selection field storing ``us`` can display ``United States``
203+
* A boolean field storing ``1`` can display ``Yes``
204+
205+
The modifier also works with Company fields:
206+
207+
.. code-block:: php
208+
209+
{contactfield=company_select_alias|label}
210+
{contactfield=company_bool_alias|label}
211+
190212
Contact replies
191213
===============
192214

docs/components/forms.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ To control the maximum number of fields shown on a Form:
8080
To add a new field to your Form:
8181

8282
#. Click the Add a new field dropdown and select the type of field you wish to use. Available fields include:
83+
84+
- **boolean** - This field provides a TRUE/FALSE or yes/no selection. You can configure it to display positive, negative, or both labels. Use this field for binary choices, such as agreeing to terms or opting into communications.
8385

8486
- **CAPTCHA** - A basic tool for spam protection requiring the Form submitter to answer a question, or detecting when spambots try to submit data in a hidden CAPTCHA field - sometimes referred to as a honeypot. It's recommended to use some kind of CAPTCHA on every Form. It's also possible to support reCAPTCHA and other tools with third-party Plugins.
8587

docs/configuration/settings.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ Mail send settings
321321

322322
* **Custom return path (bounce) address** - Set a custom return path/bounce Email address for Emails sent from the system. Note that some mail transports, such as GMail, won't support this.
323323

324+
* **Email address length limit** - This setting determines the maximum allowed length for Email addresses, including the display name. The default value is 320 characters. If an Email address - including the display name - exceeds this limit, Mautic uses only the Email address without the display name when sending Emails. This helps prevent errors with Email servers that have strict length restrictions. You can adjust this value if you need to accommodate longer Email addresses or if you want to set a more restrictive limit.
325+
324326
* **Mailer is owner** - If Contacts in Mautic have owners, select Yes to use the Contact owner as the sender of Emails to any Contacts they're listed as the owner for.
325327

326328
.. note::
@@ -673,8 +675,6 @@ Mautic tracking settings
673675

674676
The default tracking code provided in a new instance updates and changes after you set up a new custom domain or when you make changes to an existing one. You must use the new tracking code that reflects the new or edited custom domain. If you are using the Plugin for WordPress, Drupal, or Joomla, re-enter your account information in the Plugin.
675677

676-
* **Identify visitor by tracking URL** - Select **Yes** to have Mautic begin tracking a Contact after the Contact clicks a link in an Email on a device where no cookie exists.
677-
678678
* **Anonymize IP** - Select **Yes** to not store full IP addresses for your visitors/Contacts. This setting aids customers in achieving General Data Protection Regulation compliance.
679679

680680
* **Identify visitors by IP** - Select **Yes** to use the IP address to identify Contacts. It's possible to track unidentified visitors with the same IP address as an existing Contact. This may result in undesirable outcomes with large Companies who use the same externally facing IP address.

docs/configuration/variables.rst

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,41 @@ Variables
88

99
``Hi {contactfield=firstname|there},``
1010

11+
Token modifiers
12+
***************
13+
14+
Label modifier for select and boolean fields
15+
============================================
16+
17+
For select and boolean type fields, you can use the ``|label`` modifier to display the human-readable label instead of the stored value. It's beneficial when your select fields store values like codes or IDs, but you want to display friendly labels to your Contacts.
18+
19+
**Syntax:**
20+
21+
.. code-block:: text
22+
23+
{contactfield=field_alias|label}
24+
25+
**Examples:**
26+
27+
* For a select field with alias ``country_select`` that has options, such as ``us`` for ``United States`` or ``uk`` for ``United Kingdom``:
28+
29+
* ``{contactfield=country_select}`` displays the value ``us``
30+
* ``{contactfield=country_select|label}`` displays the label ``United States``
31+
32+
* For a boolean field with alias ``is_subscriber``:
33+
34+
* ``{contactfield=is_subscriber}`` displays the value ``1`` or ``0``
35+
* ``{contactfield=is_subscriber|label}`` displays the label ``Yes`` or ``No``
36+
37+
* For both Contact fields and Company fields:
38+
39+
* ``{contactfield=company_type|label}`` displays the label of a Company select field
40+
* ``{contactfield=company_active|label}`` displays the label of a Company boolean field
41+
42+
.. note::
43+
44+
The ``|label`` modifier only works with select and boolean field types. For other field types, it displays the regular value.
45+
1146
Contact fields
1247
**************
1348

docs/contacts/contacts_overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ Changing the view
6565

6666
By default Mautic uses the **list view**, but you can also choose to switch to the **card view** also known as **grid view**, which uses avatars to depict the Contacts visually using cards.
6767

68-
If you'd like to see your Contacts in the card view, click the **C** button while you're looking at the Contact list. To go back to the table or list view, press the **T** key.
68+
Press **V** on your keyboard to switch between the list and card views.
6969

7070
The :ref:`Manage Contacts<managing contacts>` section provides more information on how you can work with Contacts in Mautic.

0 commit comments

Comments
 (0)