Revision: 20559
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 18, 2009 17:44 by kahlil
Initial Code
//print_r(date('Y',$objArticle->date)); setlocale(LC_TIME, "de_DE"); $monat = strftime('%B',$objArticle->date); if ($monat == 'März') $monat = 'Maerz'; $strUrl = ampersand($this->generateFrontendUrl($objPage->fetchAssoc(), '/'.date('Y',$objArticle->date).'/'.$monat.'/items/' . ((!$GLOBALS['TL_CONFIG']['disableAlias'] && strlen($objArticle->alias)) ? $objArticle->alias : $objArticle->id))/*.'?year=2009'*/);
Initial URL
Initial Description
I added this code in the ModuleNews.php file on line 310 - 314.
Initial Title
News Module in Typolight: add year and month in the url
Initial Tags
url, module
Initial Language
PHP