![]() |
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 } Подскажите куды копать - а то потерялся в поисках уже )) |
народ, подскажите, то ли я хоть делаю =)) А то такой игнор ))
|
попробуй посмотреть что прописано в файлах самого tt_news:
typo3conf/ext/tt_news/scatic и далее в папках. встречал конфигурации, когда эта настройка бралась оттуда, а не из TS шаблона. |
limit должно быть внутри displayList.
Цитата:
Цитата:
|
Часовой пояс GMT +4, время: 08:27. |
Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Перевод: zCarot