Hallo Till, ich dachte, du willst den erst setzen.
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($GLOBALS['TSFE']); $GLOBALS['TSFE']->type viele Grüße Birgit > Am 01.10.2019 um 09:39 schrieb g4-l...@tonarchiv.ch: > > Hallo Birgit, > > danke für die Antwort. > > In meiner Action möchte ich heraus finden, ob sie als normale Seite > (type=1) aufgerufen wird oder als anderer Typ, weil dann der Inhalt > etwas anders zurück gegeben werden soll... > > Im Moment sieht meine Lösung so aus: > > if (preg_match('/type=1569872603/', > \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('REQUEST_URI'))) { > .... > } > else { .... } > > Grüße, > Till > > On 01.10.19 01:16, Birgit wrote: >> Hallo Til, >> >> typo3/sysext/backend/Classes/Routing/UriBuilder.php >> >> Ob das Folgende in der 9.5 noch genauso ist, weiß ich leider nicht, weil ihc >> es dort noch nicht gebraucht habe: >> >> $uri = $this->uriBuilder >> ->reset() >> ->setTargetPageUid($pageUid) >> ->uriFor($actionName, $arguments, $controllerName, $extensionName); >> $this->redirectToURI($uri, $delay, $statusCode); >> >> >> Viele Grüße >> Birgit >> >> >>> Am 01.10.2019 um 01:03 schrieb g4-l...@tonarchiv.ch: >>> >>> Hallo, >>> >>> kennt jemanden einen Weg, wie ich in einer Controller Action den Page >>> Type heraus finde? Ich suche schon ne ganze Weile.. >>> >>> Ich kann natürlich den original URL String greppen, aber noch habe ich >>> die Hoffnung nicht ganz aufgegeben, dass das auch eleganter geht. >>> >>> Grüße, >>> Till >>> >>> _______________________________________________ >>> TYPO3-german mailing list >>> TYPO3-german@lists.typo3.org >>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german >> _______________________________________________ >> TYPO3-german mailing list >> TYPO3-german@lists.typo3.org >> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german > _______________________________________________ > TYPO3-german mailing list > TYPO3-german@lists.typo3.org > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german