Skip to content

Commit

Permalink
Merge pull request #37 from ulrichmathes/TYPO3_12
Browse files Browse the repository at this point in the history
TYPO3 12 adaptations for reference preview
  • Loading branch information
Kephson committed Jun 5, 2024
2 parents 8f47c80 + ab9ab0f commit 21ba85c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Classes/PageLayoutView/ShortcutPreviewRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function renderPageModulePreviewContent(GridColumnItem $item): string
$preview = '';
foreach ($shortCutRenderItems as $shortcutRecord) {
$shortcutItem = GeneralUtility::makeInstance(GridColumnItem::class, $item->getContext(), $item->getColumn(), $shortcutRecord);
$preview .= '<p class="pt-2 small"><b><a href="' . $shortcutItem->getEditUrl() . '">' . $this->getLanguageService()->getLL('edit') . '</a></b></p>';
$preview .= '<p class="pt-2 small"><b><a href="' . $shortcutItem->getEditUrl() . '">' . $this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:edit') . '</a></b></p>';
$preview .= '<div class="mb-2 p-2 border reference">' . $shortcutItem->getPreview() . '<div class="reference-overlay"></div></div>';
}
return $preview;
Expand Down
10 changes: 5 additions & 5 deletions Resources/Public/Backend/Css/Skin/t3skin_override.css
Original file line number Diff line number Diff line change
Expand Up @@ -182,18 +182,18 @@
margin: 0;
}

.t3js-module-body .exampleContent > .reference {
.t3js-module-body .element-preview-content > .reference {
position: relative;
margin-top: 7px;
}

.t3js-module-body .exampleContent > .reference .t3-page-ce-header-icons-right,
.t3js-module-body .exampleContent > .reference .t3-page-ce-wrapper-new-ce,
.t3js-module-body .exampleContent > .reference .t3-page-ce-dropzone-available {
.t3js-module-body .element-preview-content > .reference .t3-page-ce-header-icons-right,
.t3js-module-body .element-preview-content > .reference .t3-page-ce-wrapper-new-ce,
.t3js-module-body .element-preview-content > .reference .t3-page-ce-dropzone-available {
display: none !important;
}

.t3js-module-body .exampleContent > .reference .reference-overlay {
.t3js-module-body .element-preview-content > .reference .reference-overlay {
position: absolute;
top: 0;
left: 0;
Expand Down

0 comments on commit 21ba85c

Please sign in to comment.