Тема: news limit
Показать сообщение отдельно
Старый 27.03.2009, 02:37   #1
shark_255
Новенький
 
Регистрация: 27.03.2009
Сообщений: 2
По умолчанию news limit

Халов !

натолкнулся на проблему - есть сущность новости, прописывал и в 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 вне форума   Ответить с цитированием