Skip to content

EXT:formhandler – Custom marker with absolute URL

26. February 2012

Problem

Images in HTML-Mails need an absolute URL

Solution

1. Get the absolute URL of your current typo3-project via typoscript

# Result: http://3dprinting.tec-se.private/
customMarkerTypo3SiteUrl = TEXT
customMarkerTypo3SiteUrl.data = getIndpEnv:TYPO3_SITE_URL

2. Create a custom marker inside of formhandler

# ----------------------------------------------------------------------
# Define a marker in Typoscript.
# You can use ###myCustomMarker### in your HTML template
# ----------------------------------------------------------------------
plugin.Tx_Formhandler.settings {
   markers {
      # Used for absolute email image links
      customMarkerTypo3SiteUrl = TEXT
      customMarkerTypo3SiteUrl.data = getIndpEnv:TYPO3_SITE_URL
   }
}

Links

http://www.typo3-formhandler.com/documentation/general-options/
http://www.thefox.ch/typo/code-schnipsel/typoscript/umgebungsvariablen/

Advertisements

From → EXT:formhandler

Leave a Comment

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: