Вход

Просмотр полной версии : news limit


shark_255
27.03.2009, 02:37
Халов !

натолкнулся на проблему - есть сущность новости, прописывал и в constants и в setup ограничение на вывод
кол-ва новостей - все без изменений.
Привожу пример из админки - конфигурация шаблона.

constants

plugin.tt_news {
listMaxW = 214
listMaxH = 70
limit = 50
}


setup

# clear the code field
plugin.tt_news.code >
plugin.tt_news.code = LIST

# prevent indexing of the LIST view
config.index_enable = 0

[globalVar = GP:tx_ttnews|tt_news > 0]
plugin.tt_news.code = SINGLE
# enable indexing of the SINGLE view
config.index_enable = 1
[global]
[global]

styles.content.get >
styles.content.get < plugin.tt_news


tt_news {
general_stdWrap {
parseFunc.nonTypoTagStdWrap.encapsLines.nonWrapped Tag >
}
}

# this will remove the complete <p> tag from ALL content
elementslib.parseFunc_RTE.nonTypoTagStdWrap.encaps Lines.nonWrappedTag >

# this line will remove only the “bodytext” class from ALL content elements

# the <p> tag will be still rendered

lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.ad dAttributes.P.class >

tt_news.general_stdWrap.parseFunc.nonTypoTagStdWra p.encapsLines.nonWrappedTag >

plugin.tt_news {
alternatingLayouts = 2
singlePid = 23
templateFile = fileadmin/templates/tt_news/projects_template.html
displayList {
subheader_stdWrap.crop = 200 | ... | 1
}
limit = 50
}


Подскажите куды копать - а то потерялся в поисках уже ))

shark_255
27.03.2009, 16:58
народ, подскажите, то ли я хоть делаю =)) А то такой игнор ))

Илья
28.03.2009, 00:51
попробуй посмотреть что прописано в файлах самого tt_news:
typo3conf/ext/tt_news/scatic и далее в папках.
встречал конфигурации, когда эта настройка бралась оттуда, а не из TS шаблона.

surfman
28.03.2009, 12:11
limit должно быть внутри displayList.

plugin.tt_news {
alternatingLayouts = 2
singlePid = 23
templateFile = fileadmin/templates/tt_news/projects_template.html
displayList {
subheader_stdWrap.crop = 200 | ... | 1
limit = 50
}

}

Лично у меня сделано так
lib.article < plugin.tt_news
lib.article {
code >
code = LIST
limit = 6
}