PDA

Просмотр полной версии : теги в tt_news


OpTi
11.08.2006, 19:26
Как можно убрать тег <p class="bodytext"></p> в subheader ?

Tod
01.09.2006, 14:16
В документации на англ. - страница 59.
How to get rid of the <p class="bodytext"> wrap ?
Add one of the following lines to your TS-Setup field:
# this will remove the complete <p> tag from all news content elements
plugin.tt_news {
general_stdWrap {
parseFunc.nonTypoTagStdWrap.encapsLines.nonWrapped Tag >
}
}
# this will remove the complete <p> tag from ALL content elements
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.no nWrappedTag >
# This will remove the <p class="bodytext"> wrap from subheader, author and links
plugin.tt_news {
# unset general_stdWrap
general_stdWrap >

displayList {
# add a wrap to the subheader
subheader_stdWrap.wrap = <p>|</p>
}

displaySingle {
# add parseFunc to the subheader
subheader_stdWrap.parseFunc < lib.parseFunc_RTE
# prevent adding of <p> tags
subheader_stdWrap.parseFunc.nonTypoTagStdWrap.enca psLines.nonWrappedTag >
# add parseFunc to the bodytext
content_stdWrap.parseFunc < lib.parseFunc_RTE
# add parseFunc to the links field
linksItem_stdWrap.parseFunc < lib.parseFunc_RTE
# prevent adding of <p> tags
linksItem_stdWrap.parseFunc.nonTypoTagStdWrap.enca psLines.nonWrappedTag >
}
}