TYPO3: get fluid content element title from file name

raw

phork0.php

1
2
3
4
5
6
7
8
9
10
11
12
<?php
//Corp.Extname:Container2col5050.html
list($extie, $file) = explode(':', $dataHandler->checkValue_currentRecord['tx_fed_fcefile'], 2);
list($prefix, $extName) = explode('.', $extie);
$extKey = GeneralUtility::camelCaseToLowerCaseUnderscored($extName);
$label = $GLOBALS['LANG']->sL(
    'LLL:EXT:'
    . $extKey . \FluidTYPO3\Flux\Form::DEFAULT_LANGUAGEFILE
    . ':' . 'flux.' . substr(strtolower($file), 0, -5)
);
$fieldArray['header'] = $label;
 
Christian Weiske Christian Weiske
owner

History