[TYPO3] Site ID
Dmitry Dulepov [typo3]
dmitry at typo3.org
Thu Dec 6 17:16:34 CET 2007
Hi!
Patrick Rodacker wrote:
> Nino Katic wrote on 06.12.2007 16:33:
>> Anybody knows which php variable holds info about site id in Typo3. I need
>> to do some check based on site id - something like if ($site_id = 1) {} else
>> {} in one extension. Basicly i need to execute some php code only if the
>> specific site is called (i have many sites in Typo3 instalation). Thx.
>
> $GLOBALS['TSFE']->id
This is page ID.
Nino. there is no concept of "Site ID" in TYPO3. What do you mean by "Site ID"? DOmain name or... what?
--
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"
More information about the TYPO3-english
mailing list