[TYPO3] Getting the alias of Website for a link

Dmitry Dulepov typo3 at accio.lv
Tue Sep 5 14:59:17 CEST 2006


Christian Leicht wrote:
> Normaly there is the $GLOBALS["TSFE"]->id in use, but i must use the 
> alias instead of the id

May be you can disclose reasons why. This may help us to give you right 

> Detail:
> <a class="navi" href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=0" 
> target=_top>Flagge der Sprache</a>

This is wrong. You should never link like this but either use functions 
from pi_base if you are writing an extension or typolink from content 
object. The code above is incompatible with simulateStatic and realurl.

Dmitry Dulepov

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)

More information about the TYPO3-english mailing list