![]() |
Форум больше не используется. Присоединяйтесь к каналу #community-ru в Slack for TYPO3 community |
|
|
#1 |
|
Senior Member
Регистрация: 06.07.2006
Сообщений: 113
|
Как можно убрать тег <p class="bodytext"></p> в subheader ?
__________________
wbr, OpTi |
|
|
|
|
|
#2 |
|
Senior Member
|
В документации на англ. - страница 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.nonWrappedTag >
}
}
# this will remove the complete <p> tag from ALL content elements
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.nonWrappedTag >
# 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.encapsLines.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.encapsLines.nonWrappedTag >
}
}
__________________
Персональный блог про заработок в интернете + полезных блога про typo3 и wordpress |
|
|
|