[TYPO3] Site ID

Nino Katic DELETE_MEnkatic at jagor.srce.hr
Tue Dec 18 16:13:13 CET 2007


"Dmitry Dulepov [typo3]" <dmitry at typo3.org> wrote in message 
news:mailman.1.1196957793.32723.typo3-english at lists.netfielders.de...
> 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?

Yes Dmitry, i thought on domain name or domain id.. something like that, so 
i can make a difference in php code when to activate one and when another 
plugin. Thx.

Nino 




More information about the TYPO3-english mailing list