Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Configuration/FlexForms/Calendar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,25 @@
<type>check</type>
</config>
</settings.hidePagination>

<settings.hideIcalLink>
<label>LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:hide.link.ical</label>
<displayCond>
<OR>

<numIndex index="0">FIELD:parentRec.list_type:=:calendarize_listdetail</numIndex>
<numIndex index="1">FIELD:parentRec.list_type:=:calendarize_list</numIndex>
<numIndex index="2">FIELD:parentRec.list_type:=:calendarize_latest</numIndex>
<numIndex index="3">FIELD:parentRec.list_type:=:calendarize_result</numIndex>
<numIndex index="4">FIELD:parentRec.list_type:=:calendarize_detail</numIndex>
<!-- <numIndex index="5">FIELD:parentRec.list_type:=:calendarize_past</numIndex> -->
</OR>
</displayCond>
<config>
<type>check</type>
</config>
</settings.hideIcalLink>

<settings.useRelativeDate>
<label>LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:useRelativeDate</label>
<displayCond>
Expand Down
3 changes: 3 additions & 0 deletions Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@
<trans-unit id="hide.pagination.teaser">
<source>Hide pagination + Teaser mode</source>
</trans-unit>
<trans-unit id="hide.link.ical">
<source>Hide ICAL link</source>
</trans-unit>
<trans-unit id="override.startdate">
<source>Override startdate</source>
</trans-unit>
Expand Down
5 changes: 3 additions & 2 deletions Resources/Private/Templates/Calendar/Detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
<f:translate key="back"/>
</f:link.page>
</f:if>
<f:link.action action="detail" arguments="{index: index}" format="ics" class="btn btn-default">ICS/iCal
</f:link.action>
<f:if condition="{settings.hideIcalLink} != 1">
<f:link.action action="detail" arguments="{index: index}" format="ics" class="btn btn-default">ICS/iCal</f:link.action>
</f:if>
</div>
</div>
</div>
Expand Down
Loading