The parseArticles hook is triggered when parsing news articles. It passes the front end template, the current article and the news module instance as arguments and does not expect a return value.


  1. FrontendTemplate $objTemplate

    The front end template instance for the news article (e.g. news_full).

  2. array $arrRow

    The current news item database result.

  3. ModuleNews $objModule

    The news module instance (e.g. ModuleNewsList).



// config.php
$GLOBALS['TL_HOOKS']['parseArticles'][] = array('MyClass', 'myParseArticles');

// MyClass.php
public function myParseArticles($objTemplate, $arrRow, $objModule)
    // Remove the default "by XXX" from Contao
    $objTemplate->author = $arrRow['author'];

More information


See also

  • getAllEvents – allows you to modify the result sets of calendar and event modules.

results matching ""

    No results matching ""