Add char to Typoscript

I would like to add space / space in TypoScript. This refers to the "More" -link in tt_news.

Here's the HTML i:

<p class="bodytext">blablabla<span class="news-list-morelink">&nbsp;<a title="Read all the news" target="_top" href="http://www.google.com">More</a></span></p> 

And here is what I want:

 <p class="bodytext">blablabla <span class="news-list-morelink">&nbsp;<a title="Read all the news" target="_top" href="http://www.google.com">More</a></span></p> 

(difference is juste space before <span> .

In my opinion, I have to make changes to TypoScript, which generates a "more" link. It should be where I wrote HERE

 plugin.tt_news { displayLatest{ subheader_stdWrap { #More link after the bodytext append = TEXT append.data = register:newsMoreLink append.wrap = HERE<span class="news-list-morelink">&nbsp;|</span> } } } 

Does anyone have any ideas? Thanks...

+6
whitespace content-management-system typo3 typoscript
source share
4 answers

Use noTrimWrap instead of wrapping:

 append.noTrimWrap = | <span class="news-list-morelink">&nbsp;|</span>| 

See TSref chapter 5 , find noTrimWrap.

+12
source share

I found this technique, but I am very pleased with it.

 append.wrap = <span></span> <span class="news-list-morelink">&nbsp;|</span> 

HTML gurus are killing me

0
source share

What about

 append.wrap = &nbsp;<span class="news-list-morelink">&nbsp;|</span> 

?

nbsp will just add a space and no extra space is required.

0
source share

My solution was to add:

 NO.afterWrap = &#32 
-one
source share

All Articles