Показать сообщение отдельно
Старый 01.09.2006, 14:16   #2
Tod
Senior Member
 
Аватар для Tod
 
Регистрация: 25.03.2006
Сообщений: 627
Отправить сообщение для Tod с помощью ICQ
По умолчанию

В документации на англ. - страница 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
Tod вне форума   Ответить с цитированием