All pastes #930469 Raw Edit

Unnamed

public text v1 · immutable
#930469 ·published 2008-03-06 16:45 UTC
rendered paste body
###
#First of all, in tt_news's locallang.xml, change the "more" setting to:
###

<label index="more"><![CDATA[<!--]]></label>

###
#Then, use this in tt_news TS:
###

temp.tt_news_more_button = Read More

plugin.tt_news.displayList.subheader_stdWrap.append = COA
plugin.tt_news.displayList.subheader_stdWrap.append {
  1 = TEXT
  1.data = register:newsMoreLink
  2 = IMAGE
  2 {
    wrap = -->|</a>
    file = GIFBUILDER
    file {
      XY = [3.w]+19,12
      backColor = #898989
      1 = IMAGE
      1 {
        file = fileadmin/templates/main/img/button/arrow-right-grey.png
        file.width = 10
        file.height = 12
        offset = 0,0
      }
      2 = IMAGE
      2 {
        file = fileadmin/templates/main/img/button/corner-right-grey.png
        file.width = 9
        file.height = 12
        offset = [3.w]+10,0
      }
      3 = TEXT
      3 {
        text < temp.tt_news_more_button
        offset = 0,9
        align = center
    #    fontFile = t3lib/fonts/test/arial.ttf
        fontFile = t3lib/fonts/visitor/visitor2.ttf
        fontSize = 13
        fontColor = white
    #    niceText = 1
      }
    }
  }
}

###
#Of course, the HTML generated is this:
###

<a href="nouvelles/item/?tx_ttnews%5Btt_news%5D=2&amp;tx_ttnews%5BbackPid%5D=29&amp;cHash=5873fc9409" title="">&lt;!--</a>--&gt;<img src="typo3temp/GB/c7cf36f366.png" width="102" height="12" alt="" title="" /></a>

###
#Any idea how to get &lt; and &gt; to remain < and >  ???
###