-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ | |
use Contao\ArticleModel; | ||
use Contao\CalendarEventsModel; | ||
use Contao\CalendarModel; | ||
use Contao\Config; | ||
use Contao\Date; | ||
use Contao\FaqCategoryModel; | ||
use Contao\FaqModel; | ||
use Contao\Input; | ||
|
@@ -117,6 +119,10 @@ public function onNewsChildRecords(array $args, $previousResult = null) | |
$row = $args[0]; | ||
$label = (string) $previousResult; | ||
|
||
if (empty($label)) { | ||
$label = '<div class="tl_content_left">' . $row['headline'] . ' <span style="color:#999;padding-left:3px">[' . Date::parse(Config::get('datimFormat'), $row['date']) . ']</span></div>'; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
aschempp
Author
Member
|
||
} | ||
|
||
$archive = NewsArchiveModel::findByPk($row['pid']); | ||
|
||
if ( | ||
|
This will ignore the configured label of the DCA. It would be better to implement either a
child_record_callback
or alabel_callback
depending on the Contao version (via aloadDataContainer
hook for instance).