Classes/Hook/Extension/TtnewsExtension.php
public function extraItemMarkerProcessor(array $markerArray, array $row, array $lConf, AbstractPlugin $ttnewsObj)
    {
        $theCode = (string)strtoupper(trim($ttnewsObj->theCode));

        $connector = GeneralUtility::makeInstance('Metaseo\\Metaseo\\Connector');

        switch ($theCode) {
            case 'SINGLE':
            case 'SINGLE2':
                // Title
                if (!empty($row['title'])) {
                    $connector->setMetaTag('title', $row['title']);
                }

                // Description
                if (!empty($row['short'])) {
                    $connector->setMetaTag('description', $row['short']);
                }

                // Keywords
                if (!empty($row['keywords'])) {
                    $connector->setMetaTag('keywords', $row['keywords']);
                }

                // Short/Description
                if (!empty($row['short'])) {
                    $connector->setMetaTag('description', $row['short']);
                }

                // Author
                if (!empty($row['author'])) {
                    $connector->setMetaTag('author', $row['author']);
                }

                // E-Mail
                if (!empty($row['author_email'])) {
                    $connector->setMetaTag('email', $row['author_email']);
                }
                break;
        }

        return $markerArray;
    }
public function extraItemMarkerProcessor(array $markerArray, array $row, array $lConf, AbstractPlugin $ttnewsObj)
    {
        $theCode = (string)strtoupper(trim($ttnewsObj->theCode));

        $connector = GeneralUtility::makeInstance('Metaseo\\Metaseo\\Connector');

        switch ($theCode) {
            case 'SINGLE':
            case 'SINGLE2':
                // Title
                if (!empty($row['title'])) {
                    $connector->setMetaTag('title', $row['title']);
                }

                // Description
                if (!empty($row['short'])) {
                    $connector->setMetaTag('description', $row['short']);
                }

                // Keywords
                if (!empty($row['keywords'])) {
                    $connector->setMetaTag('keywords', $row['keywords']);
                }

                // Short/Description
                if (!empty($row['short'])) {
                    $connector->setMetaTag('description', $row['short']);
                }

                // Author
                if (!empty($row['author'])) {
                    $connector->setMetaTag('author', $row['author']);
                }

                // E-Mail
                if (!empty($row['author_email'])) {
                    $connector->setMetaTag('email', $row['author_email']);
                }
                break;
        }

        return $markerArray;
    }
public function extraItemMarkerProcessor ( array $ markerArray , array $ row , array $ lConf , AbstractPlugin $ ttnewsObj ) { $ theCode = ( string ) strtoupper ( trim ( $ ttnewsObj -> theCode ) ) ; $ connector = GeneralUtility :: makeInstance ( 'Metaseo\\Metaseo\\Connector' ) ; switch ( $ theCode ) { case 'SINGLE' : case 'SINGLE2' : // Title if ( ! empty ( $ row [ 'title' ] ) ) { $ connector -> setMetaTag ( 'title' , $ row [ 'title' ] ) ; } // Description if ( ! empty ( $ row [ 'short' ] ) ) { $ connector -> setMetaTag ( 'description' , $ row [ 'short' ] ) ; } // Keywords if ( ! empty ( $ row [ 'keywords' ] ) ) { $ connector -> setMetaTag ( 'keywords' , $ row [ 'keywords' ] ) ; } // Short/Description if ( ! empty ( $ row [ 'short' ] ) ) { $ connector -> setMetaTag ( 'description' , $ row [ 'short' ] ) ; } // Author if ( ! empty ( $ row [ 'author' ] ) ) { $ connector -> setMetaTag ( 'author' , $ row [ 'author' ] ) ; } // E-Mail if ( ! empty ( $ row [ 'author_email' ] ) ) { $ connector -> setMetaTag ( 'email' , $ row [ 'author_email' ] ) ; } break ; } return $ markerArray ; }
Extra item marker hook for metatag fetching

@param   array          $markerArray Marker array
@param   array          $row         Current tt_news row
@param   array          $lConf       Local configuration
@param   AbstractPlugin $ttnewsObj   Pi-object from tt_news

@return  array                Marker array (not changed)
Extra item marker hook for metatag fetching