Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   Инструменты разработчика (http://forum.typo3.ru/forumdisplay.php?f=34)
-   -   Выбор локализованной записи (CONTENT || RECORDS || DB) (http://forum.typo3.ru/showthread.php?t=11227)

Ивано++ 14.03.2014 11:47

Выбор локализованной записи (CONTENT || RECORDS || DB)
 
Вопрос в следующем:

Есть запись. Она локализована на два языка.
Как получить ее title - с учетом языков, зная ее UID.

Почему - то CONTENT и RECORDS и DB: - получают только один язык...

Ни это,

PHP код:

page.10 CONTENT
page.10
.table tt_content
page.10
.select {

     
# "sorting" is a column from the tt_content table and
     # keeps track of the sorting order, which was specified in
     # the backend.
     
orderBy sorting

     
# Only select content from column "0" (the column called
     # "normal").
     
where colPos 0


Ни это

PHP код:


temp
.myObject RECORDS
temp
.myObject {
    
tables tt_content
    source
.cObject CONTENT
    source
.cObject {
        
slide = -1
        table 
tt_content
        renderObj 
TEXT
        renderObj
.field uid
    
}


Не локализует...


Часовой пояс GMT +4, время: 14:45.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot