DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Appendix A – Tutorial answers

Here are the steps that were needed to improve the display of the e-mail address:

  1. edit the HTML so that the ###FIELD.email### marker is just next to the ###FIELD.realName### marker

  2. change the type of the field to "Text"

  3. enter the following TypoScript configuration:

    typolink.parameter.field = email
    required = 1
    noTrimWrap = | (|)|
    

The "mailto:" link is now built using the typolink property of the TEXT object. We use the fact that the record's data is loaded into the content object to retrieve the e-mail address using the field property. We also make the field value required, so that nothing gets displayed when it's empty. The brackets are added using the noTrimWrap property in order to also include a blank space before the opening bracket.

As mentioned before, the result should be as follows:

The tutorial's final result

The final result in the frontend, with empty brackets removed