TYPO3 4.2.8 및 tt_news 2.5.2를 사용하고 있습니다. 나는 snippet 다음 시도 : tt_news의 이미지를 연결하십시오
plugin.tt_news.displaySingle {
image {
# turn off default popup anchor
imageLinkWrap = 0
# add our link to the first URL in links field
stdWrap.typolink {
parameter = {current:1}
parameter {
setCurrent.field = links
setCurrent.listNum = 0
insertData = 1
}
}
}
}
그런 다음 내 뉴스에 이미지를 추가하고 또한 (탭 관계) 링크 필드에 링크를 넣어.
<LINK http://www.yourwesite.com/fileadmin/user_upload/downloads/broschure.pdf _blank>Download brochure</LINK>
그러나 뉴스를 보면 이미지에 링크가 없습니다. 이전 버전의 tt_news에서 작동하려면 무엇을 변경해야합니까?
편집 :
가 지금은 (this topic에서 아이디어) gernericmarkers 그것을 시도했다. 내 TS는 다음과 같이 보입니다 :
temp.img = COA
temp.img.5 = IMAGE
temp.img.5 < plugin.tt_news.displaySingle.image
temp.img.5 {
required = 1
wrap = |
file {
import = uploads/pics/
import.field = image
import.listNum = 0
}
titleText.field = title
altText.field = title
if.isTrue.field = links
imageLinkWrap.typolink.parameter.data = field:links
}
plugin.tt_news.genericmarkers.imagewithlink < temp.img
마커가 작동하지만 뉴스에 내용이 표시되지 않습니다. TS 문제는 무엇입니까?