[TYPO3-english] how to render links in powermail frontend?

Stefan Kaufmann kaufmann at dwwd.ch
Fri Nov 14 13:47:59 CET 2014


On 11/November/2014 5:19 PM, Stefan Kaufmann wrote:
> Hello TYPO3 users,
>
> I am using the latest powermail version 2.1.x and TYPO3 6.2.5.
>
> When using the powermail frontend to display the mails, the frontend
> does not render the links, e.g. a website url or e-mail when displaying
> the mail/record in the frontend.
>
> How can I achieve this? With a typolink? How would the typoscript have
> to look?
>
> Many thanks for your help.
>
> Stefan
> - happy TYPO3 user since 2001

I've found the solution with the help of other forums and the developer. 
Since the new powermail version 2.1.x this can be achieved by modifying 
the show.html template file:

Example:


To be replaced:
<f:comment>Data Type String</f:comment>
<f:if condition="{answer.valueType} == 0">
  <f:format.nl2br>{answer.value}</f:format.nl2br>
</f:if>

with:
<f:comment>Data Type String</f:comment>
<f:if condition="{answer.valueType} == 0">
   <f:switch expression="{field.uid}">
     <f:case value="27">
       <f:comment>E-Mail Field</f:comment>
       <f:link.email email="{answer.value}" />
     </f:case>
     <f:case value="28">
       <f:comment>Homepage Field</f:comment>
       <f:link.external uri="{answer.value}" 
target="_blank">{answer.value}</f:link.external>
     </f:case>
     <f:case default="TRUE">
       <f:format.nl2br>{answer.value}</f:format.nl2br>
     </f:case>
  </f:switch>
</f:if>


More information about the TYPO3-english mailing list