Commit 59cef5f2 authored by Dainis Abols's avatar Dainis Abols
Browse files

Dates update

v4.2.3
parent 70ce68a6
......@@ -215,7 +215,7 @@ class NoticesController extends ActionController
$noticesTable = 'tx_lunotices_domain_model_notices';
$fileRepository = GeneralUtility::makeInstance(FileRepository::class);
return $fileRepository->findByRelation($noticesTable, 'media', $noticeId);
return $fileRepository->findByRelation($noticesTable, 'files', $noticeId);
}
/**
......
......@@ -34,11 +34,9 @@ return [
'config' => [
'type' => 'input',
'renderType' => 'inputDateTime',
'size' => 8,
'max' => 20,
'size' => 16,
'eval' => 'datetime,int',
'default' => '0',
'checkbox' => '0',
],
],
'endtime' => [
......@@ -47,10 +45,8 @@ return [
'config' => [
'type' => 'input',
'renderType' => 'inputDateTime',
'size' => 8,
'max' => 20,
'size' => 16,
'eval' => 'datetime,int',
'checkbox' => '0',
'default' => '0',
'range' => [
'upper' => mktime(3, 14, 7, 1, 19, 2038),
......
......@@ -3,15 +3,27 @@
<f:layout name="Default"/>
<f:section name="main">
<style>
.notice_summary {
width: 400px;
line-height:1.2em;
height:3.6em;
overflow:hidden;
text-overflow: ellipsis;
}
</style>
<f:if condition="{dates}">
<f:then>
<style>
.notice_summary {
width: 400px;
line-height:1.2em;
}
</style>
</f:then>
<f:else>
<style>
.notice_summary {
width: 400px;
line-height:1.2em;
height:3.6em;
overflow:hidden;
text-overflow: ellipsis;
}
</style>
</f:else>
</f:if>
<f:if condition="{dates}">
<select id="date_selector">
......@@ -77,6 +89,11 @@
<div class="notice_summary">
<f:format.raw>{notice.summary}</f:format.raw>
</div>
<f:if condition="{dates}">
<div class="notice_summary">
<f:format.raw>{notice.body}</f:format.raw>
</div>
</f:if>
</li>
</f:for>
</ul>
......
......@@ -76,6 +76,7 @@ DIV.single_notice DIV.notice_title h2, DIV.notice_navi {
DIV.single_notice DIV.notice_date{
clear:both;
float:right;
margin-right: 60px;
}
DIV.single_notice DIV.notice_body,
......
{
"name": "luitd/lu-notices",
"version": "4.2.1",
"version": "4.2.3",
"description": "General notice publisher for internal portal",
"type": "typo3-cms-extension",
"keywords": [
......
......@@ -9,7 +9,7 @@ $EM_CONF[$_EXTKEY] = [
'author_company' => 'University of Latvia',
'state' => 'stable',
'clearCacheOnLoad' => true,
'version' => '4.2.1',
'version' => '4.2.3',
'constraints' => [
'depends' => [
'typo3' => '9.5.0-10.9.99',
......
......@@ -4,7 +4,7 @@
## Version
4.2.1
4.2.3
## Dependencies
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment