In my Database is the TYPO3 Media-Image-File: header_image = 1
Table: tx_test
Field: header_image
How can i output the image link? I think i need the IMG_RESOURCE and the RECORDS ?
But i dont now it works. My Test:
10 = FILES
10 {
references {
table = tx_test
#uid.data = uid
fieldName = header_image
}
renderObj = RECORDS
renderObj {
10 = IMG_RESOURCE
10 {
file {
treatIdAsReference = 1
import.data = file:current:publicUrl
}
}
}
}
works perfect!
#Title
testTitle = COA
testTitle {
# Titel
10 = RECORDS
10 {
source = 1
dontCheckPid = 1
tables = tx_test
conf {
tx_test = TEXT
tx_test {
field = title
crop = 80 | | 1
stripHtml = 1
htmlSpecialChars = 1
}
}
}
stdWrap.noTrimWrap = |<title>|</title>|
stdWrap.insertData = 1
}
thanks!
here the Solution:
thanks to Paul Beck
image output with image-crop:
10 = FILES
10 {
references {
table = tx_ext_name
uid.data = GP:tx_ext_action|tx_ext_controller
fieldName = header_image
}
renderObj = IMG_RESOURCE
renderObj {
file {
treatIdAsReference = 1
import.data = file:current:uid
width = 1200c
height = 630c
}
}
}
or for the normal image-url:
10 = FILES
10 {
references {
table = tx_ext_name
uid.data = GP:tx_ext_action|tx_ext_controller
fieldName = header_image
}
renderObj = TEXT
renderObj {
data = file:current:publicUrl
}
}