Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   TypoScript практикум (http://forum.typo3.ru/forumdisplay.php?f=27)
-   -   теги в tt_news (http://forum.typo3.ru/showthread.php?t=1691)

OpTi 11.08.2006 19:26

теги в tt_news
 
Как можно убрать тег <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.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 >
  }
}



Часовой пояс GMT +4, время: 18:55.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Перевод: zCarot