[TYPO3] Getting the alias of Website for a link

Krystian Szymukowicz t33k.RE.MO.VE at RE.MO.VE.prolabium.com
Tue Sep 5 14:43:53 CEST 2006


Christian Leicht wrote:
> Hello,
> 
> can anyone tells me how i can find the alias variable of the current 
> website. I need it for the switch between languages(my_languageMenu.php)
> 
> Normaly there is the $GLOBALS["TSFE"]->id in use, but i must use the 
> alias instead of the id
> 
> 
> Where can i find this in the documentation?
> 
> Thanks for help


hi Christian

try
$GLOBALS["TSFE"]->rootLine[count($GLOBALS['TSFE']->rootLine)-1]['alias']

If you want to know how $GLOBALS["TSFE"] looks like just do:

t3lib_div::debug($GLOBALS['TSFE'], 'TSFE');


--
grtz
Krystian



More information about the TYPO3-english mailing list