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

Dmitry Dulepov typo3 at fm-world.ru
Thu Sep 1 10:51:57 CEST 2005


Hi!

Just wondering what is wrong with <p>? Since it has a class attribute,
you can customize it in any way without modifying the code...

Dmitry.

Martin Wan wrote:
> 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