17 use Psr\Http\Message\ResponseInterface;
18 use Psr\Http\Message\ServerRequestInterface;
50 self::class .
' will be removed in TYPO3 v10.0. Use route wizard_element_browser instead.',
63 public function mainAction(ServerRequestInterface $request): ResponseInterface
73 public function main()
76 $mode = GeneralUtility::_GP(
'mode');
77 $bparams = GeneralUtility::_GP(
'bparams');
79 $uriBuilder = GeneralUtility::makeInstance(\
TYPO3\CMS\Backend\Routing\UriBuilder::class);
80 $moduleUrl = (string)$uriBuilder->buildUriFromRoute(
'wizard_element_browser') .
'&mode=';
82 $documentTemplate->JScode = GeneralUtility::wrapJS(
'
83 function closing() { //
86 function setParams(mode,params) { //
87 parent.content.location.href = ' . GeneralUtility::quoteJSvalue($moduleUrl) .
'+mode+"&bparams="+params;
90 alert("ERROR: Sorry, no link to main window... Closing");
96 $documentTemplate->startPage($this->
getLanguageService()->sL(
'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:TYPO3_Element_Browser'));
99 $url = $moduleUrl . rawurlencode($mode) .
'&bparams=' . rawurlencode($bparams);
104 '<frameset rows="*,1" framespacing="0" frameborder="0" border="0">
105 <frame name="content" src="' . htmlspecialchars($url) .
'" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize" />
106 <frame name="menu" src="' . htmlspecialchars((
string)$uriBuilder->buildUriFromRoute(
'dummy')) .
'" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" />
133 if ($this->pageRenderer ===
null) {
134 $this->pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);