Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Open
LU Notices
Commits
59cef5f2
Commit
59cef5f2
authored
Sep 16, 2021
by
Dainis Abols
Browse files
Dates update
v4.2.3
parent
70ce68a6
Changes
7
Hide whitespace changes
Inline
Side-by-side
Classes/Controller/NoticesController.php
View file @
59cef5f2
...
...
@@ -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
);
}
/**
...
...
Configuration/TCA/tx_lunotices_domain_model_notices.php
View file @
59cef5f2
...
...
@@ -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
),
...
...
Resources/Private/Templates/Notices/List.html
View file @
59cef5f2
...
...
@@ -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>
...
...
Resources/Public/Css/styles.css
View file @
59cef5f2
...
...
@@ -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
,
...
...
composer.json
View file @
59cef5f2
{
"name"
:
"luitd/lu-notices"
,
"version"
:
"4.2.
1
"
,
"version"
:
"4.2.
3
"
,
"description"
:
"General notice publisher for internal portal"
,
"type"
:
"typo3-cms-extension"
,
"keywords"
:
[
...
...
ext_emconf.php
View file @
59cef5f2
...
...
@@ -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'
,
...
...
readme.md
View file @
59cef5f2
...
...
@@ -4,7 +4,7 @@
## Version
4.
2.
1
4.
2.
3
## Dependencies
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment