Skip to content

Commit e85aeba

Browse files
Update preview configuration example for Extbase (#1709) (#1715)
As Extbase-based controllers are mostly used for preview links, the example now reflects the usage of Extbase for easier adoption. Releases: main, 13.4, 12.4 (cherry picked from commit 640824f) Co-authored-by: Chris Müller <2566282+brotkrueml@users.noreply.github.com>
1 parent 39d1d72 commit e85aeba

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Documentation/PageTsconfig/TceMain.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -534,21 +534,21 @@ preview
534534
preview page for content elements as well, which might be handy if they are stored in a folder.
535535

536536
.. code-block:: typoscript
537-
:caption: EXT:site_package/Configuration/page.tsconfig
538-
539-
TCEMAIN.preview {
540-
disableButtonForDokType = 199, 254
541-
<table name> {
542-
previewPageId = 123
543-
useDefaultLanguageRecord = 0
544-
fieldToParameterMap {
545-
uid = tx_myextension_pi1[showUid]
546-
}
547-
additionalGetParameters {
548-
tx_myextension_pi1.special = HELLO # results in tx_myextension_pi1[special]
549-
}
550-
}
551-
}
537+
:caption: EXT:site_package/Configuration/page.tsconfig
538+
539+
TCEMAIN.preview {
540+
disableButtonForDokType = 199, 254
541+
<table name> {
542+
previewPageId = 123
543+
fieldToParameterMap {
544+
uid = tx_myextension_pi1[showUid]
545+
}
546+
additionalGetParameters {
547+
tx_myextension_pi1.controller = MyController # results in tx_myextension_pi1[controller]
548+
tx_myextension_pi1.action = show # results in tx_myextension_pi1[action]
549+
}
550+
}
551+
}
552552
553553
The :typoscript:`previewPageId` is the uid of the page to use for preview. If this setting is omitted the
554554
current page will be used. If the current page is not a normal page, the root page will be chosen.

0 commit comments

Comments
 (0)