Search code examples
typo3typoscripttemplavoila

Render a url as link with url itself as link text in typoscript


How to render a url as hyper link with typoscript?

Typoscript:

    20 = TEXT
    20.field = email
    20.Wrap = <span><a href="mailto: | " >Link text</a></span>

Above typoscript gives me the HTML output

    <a href="mailto:email" >Link text</a>

I want email it self in the place of Link text. How to achieve this?


Solution

  • Problem solved myself... :)

        20 = TEXT
        20.dataWrap = <span><a href="mailto:{field:email}" >{field:email}</a></span>