PDA

Просмотр полной версии : контент из tt_content


brack
14.11.2008, 18:19
Понимая что вопрос слишком начального уровня всеже рискну задать его. Следуя документу TypoScript в примерах, нацарапал такой темплейт:

tt_content = CASE
tt_content.key.field = CType

tt_content.header {
1 = TEXT
1.field = header
1.wrap = {$cHeaderWrap}
1.space = 3 | 2
}

tt_content.text < tt_content.header
tt_content.text {
3 = TEXT
3.field = bodytext
3.fontTag = {$cBodyTextWrap}
3.br = 1
3.space = | 10
3.parseFunc {
makelinks = 1
makelinks.http.keep = path
makelinks.http.wrap = <B>|</B>
makelinks.mailto.keep = path
makelinks.mailto.wrap = <FONT color="blue">|</FONT>
makelinks.mailto.ATagBeforeWrap = 1
}
}

page = PAGE
page.typeNum = 0

page.5 = HMENU
page.5.1 = TMENU
page.5.1.wrap = | <BR><BR>
page.5.1.NO {
linkWrap = &nbsp;<font color=yellow> | </font>&nbsp;
ATagBeforeWrap = 1
}

page.10 = CONTENT
page.10 {
table = tt_content
select {
pidInList = this
orderBy = sorting
}
}


В страницы добабил контент, не скрытый, все вроде как должно быть но..., при просмотре страницы вижу только меню а вот контента нет совсем. Может кто подскажет, что я сделал не так?

Valery Romanchev
15.11.2008, 02:44
такие проблемы решаются методом упрощения кода
к примеру


tt_content = TEXT
tt_content.field = bodytext


page = PAGE
page.typeNum = 0

page.10 = CONTENT
page.10 {
table = tt_content
select {
pidInList = this
orderBy = sorting
}
}

работает