[TYPO3-mvc] Hook for tt_address written for extbase 6.2

Johannes C. Schulz - EnzephaloN IT-Solutions info at enzephalon.de
Thu Jul 4 13:37:27 CEST 2013


Hello again

I can answer my second question by myself:
public function extraItemMarkerProcessor($markerArray, $address, $lConf,
$lcObj) {
    $lcObj = new \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
    $lcObj->data = $address;
    $markerArray['###LAT###'] =
$lcObj->stdWrap($address['tt_address_hook_lat'],
$lConf['tt_address_hook_lat.']);
    $markerArray['###LON###'] =
$lcObj->stdWrap($address['tt_address_hook_lng'],
$lConf['tt_address_hook_lng.']);
    $mapurl = "http://www.domain.de/index.php?map=1";
    $markerArray['###MAPLINK###'] = $lcObj->stdWrap($mapurl .
"&lat=".$address['tt_address_hook_lat'] . "&lon=" .
$address['tt_address_hook_lng'], $lConf['maplink.']);
    $this->lang = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('lang');
    if($this->lang == '') $this->lang = 'de';
    $parser =
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('t3lib_l10n_parser_Llxm
l');
    $LOCAL_LANG =
$parser->getParsedData(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::s
iteRelPath("enzteaserlist").'/Resources/Private/Language/locallang_csh_tx_en
zteaserlist_domain_model_addresses.xml',$this->lang);
    $markerArray['###HTITLE###'] =
$lcObj->stdWrap($LOCAL_LANG[$this->lang]['htitle'], $lConf['htitle.']);
    return $markerArray;
  }

Works fine ;-) And should be compatible with 6.2 (if you find an error - you
are welcome to show me!)

Johannes



More information about the TYPO3-project-typo3v4mvc mailing list