簡體   English   中英

我如何在自定義內容元素的后端使用 FLUID/extbase 進行預覽 TYPO3 >= 11

[英]How can i use FLUID / extbase for preview at the backend of custom content elements TYPO3 >= 11

由於 class“PageLayoutView”已棄用(例如“PageLayoutViewDrawItem”掛鈎),我如何使用 FLUID / extbase 對后端頁面模塊(TYPO3 >= 11)中的自定義內容元素進行后端預覽?

我知道這種新方法,但它不使用 FLUID,我必須編寫自己的數據庫查詢(例如 querybuilder): https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us /ApiOverview/ContentElements/CustomBackendPreview.html

我不明白是否有任何方法可以讓后端獲得與前端相同的“神奇”extbase 東西(對於一個和相同的內容元素)?!

您可以在TSConfig 頁面中為后端預覽指定一個Fluid 模板。

mod.web_layout.tt_content.preview.mycustomctype = EXT:myextension/Resources/Private/Templates/Preview/CTypePreview.html

如果你想在預覽中渲染圖像,你需要 vhs-ViewHelper "v:resource.record.fal"。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM