Skip to content

Commit

Permalink
Do not render collapsible buttons and text if not in collapsible Grid
Browse files Browse the repository at this point in the history
  • Loading branch information
garbast committed Jan 5, 2024
1 parent 9436503 commit ee8bb28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Resources/Private/Partials/PageLayout/Grid/ColumnHeader.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<f:if condition="{column.active}">
<f:then>
<div class="btn-group t3-page-column-header-icons">
<f:if condition="{collapsable}">
<a href="#"
class="btn btn-sm btn-default btn-borderless t3js-toggle-container-column"
title="{f:translate(key: 'LLL:EXT:ew_collapsible_container/Resources/Private/Language/locallang.xlf:expandcontent')}"
Expand All @@ -16,6 +17,7 @@
data-collapse-state="expanded">
<core:icon identifier="actions-view-list-collapse" />
</a>
</f:if>
<f:if condition="{allowEditContent} && {column.editUrl}">
<a href="{column.editUrl}" title="{column.editLinkTitle}" class="btn btn-sm btn-default btn-borderless"><core:icon identifier="actions-document-open" /></a>
</f:if>
Expand Down Expand Up @@ -47,6 +49,8 @@
<div class="t3-page-ce-dropzone t3js-page-ce-dropzone-available"></div>
</div>
</f:if>
<f:if condition="{collapsable}">
<div class="t3-page-ce container-collapsed-column-marker">
{f:translate(key: 'LLL:EXT:ew_collapsible_container/Resources/Private/Language/locallang.xlf:contentcollapsed')}
</div>
</f:if>
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Container/Grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<f:if condition="{containerGrid}">
<f:comment>Backend\Preview\ContainerLayoutView (Fluid based page module)</f:comment>
<f:render partial="PageLayout/Grid" arguments="{grid: containerGrid, hideRestrictedColumns: hideRestrictedColumns, newContentTitle: newContentTitle, newContentTitleShort: newContentTitleShort, allowEditContent: allowEditContent}" />
<f:render partial="PageLayout/Grid" arguments="{grid: containerGrid, hideRestrictedColumns: hideRestrictedColumns, newContentTitle: newContentTitle, newContentTitleShort: newContentTitleShort, allowEditContent: allowEditContent, collapsable: 1}" />
</f:if>

</html>

0 comments on commit ee8bb28

Please sign in to comment.