First of all, sorry for writing in English, I don’t speak German. I’m here because this board seems to be the place where T3sports is most widely discussed. But you may reply in German. 🙂
Second, sorry for still being a TS dumbass, I'm only in my second month of learning. 🙂
I’m using T3sports extensions for my first TYPO3 project, which is a football-related site.
My current objective is to create a pretty graphic frontpage teaser for the single upcoming match using GIFBUILDER. I would like to create it in TypoScript, not writing my own extension.
I added a League Management plugin, chose a favorite club and marked to display a single scheduled game. Now I have 2 problems:
1. How can I copy the data from the plugin to my own text objects that I will include in the image?
2. How can I replace the whole plugin output with the image? I managed to replace markers like ###MATCH_COMPETITION_SHORT_NAME###, but not the ###MATCH### marker itself. (Of course, I can create a suitable template, but it looks like a bad workaround).
This is the code I wrote so far (in TypoScript field of the plugin), which is supposed to write the competition short name, home and guest team names on an image, in place of short_name marker. It tries to take values using the “field:” construct, but seems to fail: all the values it gets are related to competition name, not the team names.
What am I doing wrong? And is the task technically possible?
matchtable.match {
home.name.nameText = TEXT
home.name.nameText.value = {field:name}
home.name.nameText.value.insertData = 1
guest.name.nameText = TEXT
guest.name.nameText.value = {field:name}
guest.name.nameText.value.insertData = 1
competition.short_name = IMAGE
competition.short_name.nameText = TEXT
competition.short_name.nameText.value = {field:short_name}
competition.short_name.nameText.value.insertData = 1
competition.short_name.file = GIFBUILDER
competition.short_name.file {
XY = 400, 150
format = png
10 = TEXT
10.text < matchtable.match.competition.short_name.nameText.value
10.fontSize = 15
10.offset = 10,35
10.niceText = 1
10.fontFile = fileadmin/fonts/MyriadPro-Regular.otf
20 = TEXT
20.text < matchtable.match.home.name.nameText.value
20.fontSize = 15
20.offset = 10,75
20.niceText = 1
20.fontFile = fileadmin/fonts/MyriadPro-Regular.otf
30 = TEXT
30.text < matchtable.match.guest.name.nameText.value
30.fontSize = 15
30.offset = 200,75
30.niceText = 1
30.fontFile = fileadmin/fonts/MyriadPro-Regular.otf
}
}