[TYPO3-ttnews] related internal links and a P-tag

Thomas Scholze tscholze at fh-lausitz.de
Mon Mar 5 11:38:06 CET 2007


Hello Oliver,
your are right at all...deep inside TYPO3 ;-)

I've choosen the CSS-Way.

Thank you.


Oliver Rowlands schrieb:
> Hi Thomas,
> 
> This is a result of the 'plugin.tt_news.global_stdWrap' parseFunc which 
> inherits the behavior of 'lib.parsefunc_RTE' by default. You can remove 
> the <p> tags by adding the following to your template TS Setup:
> 
> plugin.tt_news {
> general_stdWrap.parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag =
> }
> 
> Note: this might have some undesirable side effects as it will affect 
> the rendering of all 'tt_news' content which is parsed through the 
> 'formatStr()' function.
> 
> Alternatively you could alter the formatting in CSS with out removing 
> the <p> tag (I assume this is what you are trying to achieve):
> 
> dl.news-single-links dd p.bodytext {
>     margin: 0;
>     padding: 0;
> }
> 
> Hope this helps,
> 
> Oliver
> 
> Thomas Scholze wrote:
>> Hello List,
>>
>> if i add a internal page to realtions in a news item with
>> <link 45>my text</link>
>> it works fine the links is created, but always wrapped with a <p></p>. 
>> See:
>> <dl class="news-single-links">
>>     <dt>
>>         Links:
>>     </dt>
>>     <dd>
>>         <p>
>>             <a href="realurl/path/to/site.html">my text</a>
>>         </p>
>>     </dd>
>> </dl>
>>
>> How to stop that? Couldn't find it in TS or somewhere else.
>>
>> Thanks for Help.
>>
>> Regards
>> Thomas
> 
> 


More information about the TYPO3-project-tt-news mailing list