dmartynenko |
18.09.2008 17:30 |
Взято из мануала!!!
subheader_stdWrap -> stdWrap
stdWrap for display of the news subheader (short).
Код:
Example:
plugin.tt_news.displayList.subheader_stdWrap {
crop = 300 | ... | 1
ifEmpty.field = bodytext
}
This will crop the subheader after 300 characters and add “...” at the end of the text. (the third parameter for cropping only at the end of a word, works only with TYPO3 >=3.7.0).
If the subheader field (short) is empty, the content of the bodytext field is taken instead.
subheader_stdWrap is only active if the subheader is filled to the template marker ###NEWS_SUBHEADER### and not for the register “newsSubheader”. see section “Registers” in this manual for more information.
Вместо displayList может быть displaySingle, displayLatest...
|