[Typo3] How to get rid of the <p> tag wrapping news subheader in tt_news?

Martin Wan mwan at objectivasoftware.com
Thu Sep 1 04:16:55 CEST 2005


I did it.

Refer to http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110126186/?tx_maillisttofaq_pi1%5Bmode%5D=1&tx_maillisttofaq_pi1%5Bsword%5D=subheader&tx_maillisttofaq_pi1%5Banswered_only%5D=0

Why  does not tt_news give the wrap control to the TScript or template file?

in class.tx_ttnews.php line 1180, I changed it to :

//$markerArray['###NEWS_SUBHEADER###'] = $this->formatStr($this->local_cObj->stdWrap($row['short'], $lConf['subheader_stdWrap.']));
$markerArray['###NEWS_SUBHEADER###'] = $this->local_cObj->stdWrap($row['short'], $lConf['subheader_stdWrap.']);

Then the generated html code become to:
<td>This is the subheader part of...</td>

The <p class="bodytext"></p> tag is gone, and then I can use template file to control the layout style. Now works fine.


Martin Wan

-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110136763/
					



More information about the TYPO3-english mailing list