[BUGFIX] Make it possible to add cHash to preview links
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / 8.7.x / Important-78336-GeneratePreviewLinksWithAChash.rst
1 .. include:: ../../Includes.txt
2
3 =======================================================
4 Important: #78336 - Generate preview links with a chash
5 =======================================================
6
7 See :issue:`78336`
8
9 Description
10 ===========
11
12 The preview link configuration has been extended to be able to generate links with a cHash.
13
14 Provide the setting `useCacheHash = 1` to add a cHash. This is essential for records displayed
15 using Extbase which enforces cHash usage.
16
17 .. code-block:: typoscript
18
19         TCEMAIN.preview {
20                 <table name> {
21                         previewPageId = 123
22                         useCacheHash = 1
23                         fieldToParameterMap {
24                                 uid = tx_myext_pi1[showUid]
25                         }
26                         additionalGetParameters {
27                                 tx_myext_pi1[special] = HELLO
28                         }
29                 }
30         }
31
32 If `useCacheHash = 1` is not set, the `no_cache` parameter will be added just like before.
33
34 .. index:: Backend, Frontend, TSConfig