[TYPO3-english] custom viewhelper and pages overlay data problem

Nicola Cerchiari nicola.cerchiari at gmail.com
Thu Jun 13 12:26:49 CEST 2013


Hi again guys,
in my continous wandering inside TYPO3 6.x i encountered another, in my
opinion, odd thing.
I wrote a very simple viewhelper (based on Fluidpages menu viewhelper) that
basically returns the nav_title/tile of a specific page passed by uid in
fluid. (this viewhelper is used on page A to retrieve data of page B, just
for understanding).

Everything seems to work just fine but translation of page data, all the
rest of the website gets correctly translated though.

Here is the relevant part of my helper:

public function render() {
        $pageUid = $this->arguments['pageUid'];
        $pageSelect = new t3lib_pageSelect();
        $page = $pageSelect->getPage($pageUid);
if($page['nav_title'] != '')
$title = $page['nav_title'];
else
$title =  $page['title'];
return $title;
    }



More information about the TYPO3-english mailing list