TYPO3 Preview URL Configuration for all buttons

不问归期 提交于 2019-12-11 15:15:47

问题


I need to add a query string to the preview URL on TYPO3.

There are 4 possible ways to view the page from TYPO3 BE

  • Edit the page and choose "Save and view page" from the "Save" button dropdown
  • Right click on page in page tree
  • Click "document with eye" icon "View webpage" button (under Columns/Languages dropdown)
  • Click "eye" icon "View webpage" under default when Languages is selected

Using this configuration: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.2/Feature-66370-AddFlexiblePreviewUrlConfiguration.html I am able to edit the "Save and view page" option to add a query string like so:

TCEMAIN.preview {
    pages {
        additionalGetParameters {
            newQueryString = tx_languageversion2
        }
    }
}

Is there equivalent code to edit the other view page buttons listed above?

EDIT: Alternatively, is there a way to hide the View button next to the Edit button? That way the only way to preview is using the "Save and view page" option

Thanks

来源:https://stackoverflow.com/questions/52384218/typo3-preview-url-configuration-for-all-buttons

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!