[TYPO3-UG Russia] Re: [Typo3-UG Russia] Про TS и TSFE
Dmitry Dulepov
typo3 at fm-world.ru
Mon Jan 9 11:55:09 CET 2006
Привет!
Skorokhodov Aleksandr wrote:
> Как обратиться к переменной $GLOBALS['TSFE']->fe_user->user['uid'] через TS?
> хочу использовать uid юзера для выборки данных из другой таблицы с
> помощью CONTENT
Скорее всего так:
>>lib.admin_menu.20 = CONTENT
>>lib.admin_menu.20 {
>> wrap = <b>|</b>
>> table = tx_здгп_firms
>> select {
>> pidInList = 137
>> where = fe_user = {glob:TSFE:fe_user:user:uid}
where = 1=1
andWhere {
data = global:TSFE|fe_user|user|uid
wrap = fe_user = '|'
}
>> }
>> renderObj = COA
>> renderObj.10 = TEXT
>> renderObj.10.field=title
Взял из TSRef, сам не проверял. Важно использовать andWhere, а не where,
потому что andWhere - это stdWrap, а where - просто строка.
Всё это будет очень плохо работать, если в имени есть апострофы.
Дима.
More information about the TYPO3-russia
mailing list