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

Rajesh Tiwari mail.rajeshtiwari at gmail.com
Thu Sep 1 10:57:46 CEST 2005


Hi its not possible,
If you want your code to work you have to use <div> tag instead of <p> tag.

If you got any other solution plz let us know as we are facing same problem 
after installing smile_glossary extension.

Thanks in advance!!

Cheers! 
rajsacks

On 9/1/05, Dmitry Dulepov <typo3 at fm-world.ru> wrote:
> 
> 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/
> >
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 



--



More information about the TYPO3-english mailing list